Handle element types in the conten picker
This commit is contained in:
committed by
Sebastiaan Janssen
parent
27ce8c8ebc
commit
10fbffcfcc
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user