Re add check for CreateTemplateForContentType in ModelsBuilderNotificationHandler
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user