U4-9706 - Partial View Macro File is not created but Macro is

Created by Rune Strand 30 Mar 2017, 14:50:46 Updated by Shannon Deminick 04 Apr 2017, 02:46:37

Subtask of: UAASSCRUM-810

What did you do? I created a Partial View Macro File with a corresponding Macro (1.png)

What did you expect to happen? A partial view to be created alongside the macro and the the "correct" path added to the macro.

What actually happened? The macro is created and the editor for the Partial View Macro File is opened but not saved (2.png) until the user saves the partial view(3.png). The path to the partial view is saved on the macro either way but with -1 added in the path (4.png). So the path is saved as ~/Views/MacroPartials/-1/partialName.cshtml

6 Attachments


Bjarne Fyrstenborg 30 Mar 2017, 22:49:12

I also noticed this when creating a partial view macro file with corresponding macro. It seems to be an issue with SQL CE from the exception.

Furthermore when just creating a partial view macro file without corresponding macro, it shows the "You have unsaved changes" prompt - if I click "discard changes" I get the partial view macro, however the file is not saved until I click the save-button. For e.g. with XSLT it is created when clicking create in the dialog.

Mads Rasmussen 03 Apr 2017, 13:01:05

What to test:

  • Test that you are able to create a Partial view macro file with a macro. Check that the macro is created, the alias is correct and the macro partial view has the correct path.
  • Test that you can create a partial view macro file without a macro. Make sure that no macro is created.
  • Test that you can create a partial view macro file based on a snippet. All snippets will always get a corresponding macro so make sure the macro is created and alias and path are correct.

PR: https://github.com/umbraco/Umbraco-CMS/pull/1851

Shannon Deminick 04 Apr 2017, 02:46:21

works as advertised!

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.0

Due in version: 7.6.0

Sprint: Sprint 56

Story Points: 3