Merge branch 'netcore/dev' into netcore/7668-remove-repository-concerns-from-services
This commit is contained in:
@@ -653,10 +653,14 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
var entity = new MediaEntitySlim();
|
||||
BuildContentEntity(entity, dto);
|
||||
|
||||
if (dto is MediaEntityDto contentDto)
|
||||
// fill in the media info
|
||||
if (dto is MediaEntityDto mediaEntityDto)
|
||||
{
|
||||
// fill in the media info
|
||||
entity.MediaPath = contentDto.MediaPath;
|
||||
entity.MediaPath = mediaEntityDto.MediaPath;
|
||||
}
|
||||
else if (dto is GenericContentEntityDto genericContentEntityDto)
|
||||
{
|
||||
entity.MediaPath = genericContentEntityDto.MediaPath;
|
||||
}
|
||||
|
||||
return entity;
|
||||
|
||||
Reference in New Issue
Block a user