U4-3481 - Adding Scripting Files and Partial View Macro File with the same name and 'create macro' selected fails.

Created by Søren Reinke 11 Nov 2013, 12:57:32 Updated by Shannon Deminick 25 Mar 2014, 01:14:43

I installed Umbraco 7 RC from Nuget.

Then i added a 'Scripting File' called 'test' with 'Create Macro' selected. Then i added a 'Partial View Macro File' called 'test' also with the name 'test' and the 'Create Macro' checkbox selected.

That resulted in the following error: A duplicate value cannot be inserted into a unique index. [ Table name = cmsMacro,Constraint name = IX_cmsMacroPropertyAlias ]

Because the 'test' macro was already created.

The system should catch this problem before trying to save it.

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version: 7.1.0

Sprint:

Story Points:

Cycle: