From 94bc4404376b7fb9ded0c6014c09799aab4865d2 Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 24 Sep 2015 12:14:08 +0200 Subject: [PATCH] adds note --- src/Umbraco.Web/Editors/ContentTypeController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web/Editors/ContentTypeController.cs b/src/Umbraco.Web/Editors/ContentTypeController.cs index 1a0f7be2fa..4418de580f 100644 --- a/src/Umbraco.Web/Editors/ContentTypeController.cs +++ b/src/Umbraco.Web/Editors/ContentTypeController.cs @@ -130,6 +130,8 @@ namespace Umbraco.Web.Editors //set id to null to ensure its handled as a new type contentType.Id = null; + //TODO: This all needs to be done in a transaction!! + // Which means that all of this logic needs to take place inside the service //create a default template if it doesnt exist -but only if default template is == to the content type if (contentType.DefaultTemplate != null && contentType.DefaultTemplate.Alias == contentType.Alias)