Allow methods that call GetCropUrl to be verified in unit tests. (#15674)
This commit is contained in:
@@ -520,7 +520,7 @@ public static class ImageCropperTemplateCoreExtensions
|
||||
throw new ArgumentNullException(nameof(mediaItem));
|
||||
}
|
||||
|
||||
if (mediaItem.HasProperty(propertyAlias) == false || mediaItem.HasValue(propertyAlias) == false)
|
||||
if (mediaItem.HasProperty(propertyAlias) == false || mediaItem.HasValue(publishedValueFallback, propertyAlias) == false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user