V8: Ensure consistent template file casing no matter how templa… (#4889)
Thanks Kenn! Wonderful, as ever
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user