Re add check for CreateTemplateForContentType in ModelsBuilderNotificationHandler

This commit is contained in:
Mole
2021-04-09 09:39:49 +02:00
parent a04320aaa1
commit 13a6e11783

View File

@@ -97,6 +97,12 @@ namespace Umbraco.Cms.Web.Common.ModelsBuilder
return;
}
// Don't do anything if we're not requested to create a template for a content type
if (notification.CreateTemplateForContentType is null or false)
{
return;
}
// ensure we have the content type alias
if (notification.ContentTypeAlias is null)
{