Reset the template when converting a doctype and the new doctype does not have a template assigned

Fixes U4-5848
This commit is contained in:
Tom Pipe
2014-11-20 14:22:19 +00:00
parent 209ccb9ae7
commit 91f087141b

View File

@@ -212,10 +212,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs
if (NewTemplateList.SelectedItem != null)
{
var templateId = int.Parse(NewTemplateList.SelectedItem.Value);
if (templateId > 0)
{
_content.Template = ApplicationContext.Current.Services.FileService.GetTemplate(templateId);
}
_content.Template = templateId > 0 ? ApplicationContext.Current.Services.FileService.GetTemplate(templateId) : null;
}
// Set the property values