Make CreateTemplateForContentType non nullable and default to false.

This commit is contained in:
Mole
2021-04-09 09:59:53 +02:00
parent 7405191e03
commit b4f9dc7b66
3 changed files with 17 additions and 5 deletions

View File

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