Skip to content

Commit deeeaf4

Browse files
authored
Creating a Template via a new DocType (#18247)
uses the doc-type name, so that the server can case it appropriately for the template filename. re: #17458 (comment)
1 parent 82fcede commit deeeaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type/document-type-workspace.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class UmbDocumentTypeWorkspaceContext
169169
async #createAndAssignTemplate() {
170170
const { data: templateScaffold } = await this.#templateRepository.createScaffold({
171171
name: this.getName(),
172-
alias: this.getAlias(),
172+
alias: this.getName(), // NOTE: Uses "name" over alias, as the server handle the template filename. [LK]
173173
});
174174

175175
if (!templateScaffold) throw new Error('Could not create template scaffold');

0 commit comments

Comments
 (0)