Merge pull request #2107 from leekelleher/temp-U4-10260
U4-10260 - Umbraco.7.7 beta - NestedContent with ModelsBuilder disabled throws error
This commit is contained in:
@@ -108,7 +108,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
|
||||
i,
|
||||
preview);
|
||||
|
||||
if (PublishedContentModelFactoryResolver.HasCurrent)
|
||||
if (PublishedContentModelFactoryResolver.HasCurrent && PublishedContentModelFactoryResolver.Current.HasValue)
|
||||
{
|
||||
// Let the current model factory create a typed model to wrap our model
|
||||
content = PublishedContentModelFactoryResolver.Current.Factory.CreateModel(content);
|
||||
|
||||
Reference in New Issue
Block a user