Merge branch 'v8/8.12' into v8/dev

This commit is contained in:
Sebastiaan Janssen
2021-03-31 13:00:32 +02:00
6 changed files with 43 additions and 54 deletions

View File

@@ -202,8 +202,8 @@ namespace Umbraco.Web.PropertyEditors
_richTextPropertyValueEditor.GetReferences(x.Value)))
yield return umbracoEntityReference;
foreach (var umbracoEntityReference in mediaValues.SelectMany(x =>
_mediaPickerPropertyValueEditor.GetReferences(x.Value["udi"])))
foreach (var umbracoEntityReference in mediaValues.Where(x => x.Value.HasValues)
.SelectMany(x => _mediaPickerPropertyValueEditor.GetReferences(x.Value["udi"])))
yield return umbracoEntityReference;
}
}