Allow methods that call GetCropUrl to be verified in unit tests. (#15674)

This commit is contained in:
Andy Butland
2024-02-02 13:12:26 +01:00
committed by GitHub
parent 1e72b1cf0b
commit b5b9c13bad

View File

@@ -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;
}