U4-9971 - Special "square bracket" notation in Umbraco.Field not working

Created by Sebastiaan Janssen 31 May 2017, 07:56:44 Updated by Mikkel Holck Madsen 31 May 2017, 08:55:33

The notation is not longer working for cases like this:

@Umbraco.Field("siteTitle", altText:"[#pageName]")

That used to return the name of the page is the siteTitle property was empty.

Both the [#pageElement] and [$recurciveValue] notation are currently broken.

This is because we're passing in a null into the collection that holds this information like pagename.

Comments

Sebastiaan Janssen 31 May 2017, 08:19:25

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


Mikkel Holck Madsen 31 May 2017, 08:55:28

Merged


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.0, 7.6.1, 7.6.2

Due in version: 7.6.3

Sprint:

Story Points:

Cycle: 2