Merge pull request #550 from tompipe/umbukfest-U4-5848

Reset the template when converting a doctype and the new doctype does no...
This commit is contained in:
Shannon Deminick
2014-11-21 08:46:16 +11:00

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