U4-7530 - Creating new templates which already exist on disk should not overwrite content

Created by Stefan Kip 14 Dec 2015, 09:30:27 Updated by Lennard Fonteijn 18 Aug 2017, 21:34:35

Relates to: U4-9843

Relates to: U4-663

Relates to: U4-6946

When you create a template (masterpage) outside umbraco, for instance with Visual Studio so you have code-behind and designer files, you have to create it afterwards in umbraco. This is a step which I can understand, that's no problem. But it would be nice if the 'Create new template' step would check if the file to create already exists and if it does, would not overwrite it's content.

Comments

Stefan Kip 01 Mar 2016, 09:03:13

This is still happening in 7.4.0 and 7.4.1 with MVC Views.


Lennard Fonteijn 18 Aug 2017, 21:34:22

This one can be closed, as it has been resolved with the merging of the 7.7 branch some time ago, and is currently already in 7.6.5 already :)

https://github.com/umbraco/Umbraco-CMS/blob/release-7.6.5/src/Umbraco.Core/Persistence/Repositories/TemplateRepository.cs#L249


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.4.1

Due in version:

Sprint:

Story Points:

Cycle: