Handle element types in the conten picker

This commit is contained in:
Kenn Jacobsen
2019-01-23 14:40:11 +01:00
committed by Sebastiaan Janssen
parent 27ce8c8ebc
commit 10fbffcfcc

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
if (udi == null)
return null;
content = _publishedSnapshotAccessor.PublishedSnapshot.Content.GetById(udi.Guid);
if (content != null)
if (content != null && content.ItemType == PublishedItemType.Content)
return content;
}
}