U4-1504 - RenderMacro in MVC Views editor in back office inserts incorrect syntax when macro has no parameters

Created by Shannon Deminick 18 Jan 2013, 21:53:23 Updated by Sebastiaan Janssen 19 Jan 2013, 13:15:14

Though this does not cause any errors it would be much nicer to not have it insert the empty object.

For example, when inserting a macro without any parameters into the editor in the back office it will render syntax like:

@Umbraco.RenderMacro("TestMacro", new );

whereas it should do this: @Umbraco.RenderMacro("MacroForm")

Please note the semi-colon at the end, this will actually render a semicolon in the markup which is not nice!

Comments

Shannon Deminick 19 Jan 2013, 01:40:42

Have updated this to major because of the semi-colon as this will change what is rendered.


Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Architecture

Backwards Compatible: False

Fix Submitted:

Affected versions: 6.0.0, 6.1.0

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: