Merge pull request #1014 from kvakulo/fix-media-item-without-image

Fix the media picker not rendering when a media item has no image
This commit is contained in:
Claus
2016-01-14 13:46:12 +01:00

View File

@@ -109,7 +109,7 @@ angular.module('umbraco')
//NOTE: The 'entity' can be either a normal media entity or an "entity" returned from the entityResource
// they contain different data structures so if we need to query against it we need to be aware of this.
mediaHelper.registerFileResolver("Umbraco.ImageCropper", function (property, entity, thumbnail) {
if (property.value.src) {
if (property.value && property.value.src) {
if (thumbnail === true) {
return property.value.src + "?width=500&mode=max";