V8: Ensure consistent template file casing no matter how templa… (#4889)

Thanks Kenn! Wonderful, as ever
This commit is contained in:
Kenn Jacobsen
2020-01-30 17:06:15 +01:00
committed by GitHub
parent a41aa26532
commit 0a89fcc248
@@ -194,7 +194,9 @@ namespace Umbraco.Web.Editors
throw new HttpResponseException(HttpStatusCode.NotFound);
}
var template = Services.FileService.CreateTemplateWithIdentity(display.Name, display.Alias, display.Content, master);
// we need to pass the template name as alias to keep the template file casing consistent with templates created with content
// - see comment in FileService.CreateTemplateForContentType for additional details
var template = Services.FileService.CreateTemplateWithIdentity(display.Name, display.Name, display.Content, master);
Mapper.Map(template, display);
}