U4-11348 - Nested Content - Dropdown value null in umbraco.config

Created by Heather L Floyd 18 May 2018, 03:03:12 Updated by Heather L Floyd 29 May 2018, 17:34:14

Relates to: U4-10944

Relates to: U4-10950

In an Umbraco v.7.10.3 site I have a doctype "Recipe" with a Nested Content property named "Instructions". The Nested Content item has two properties - a Textarea ("InstructionText") and a simple drop-down ("TextType")

In the back-office, I can add multiple "Instructions" to a Recipe and I see the drop-down value displayed properly. If I save the Recipe and come back to it, the instructions are still showing proper drop-down values.

However, when I attempt to render the data in a View, "TextType" is always null.

var rIpub = Umbraco.AssignedContentItem; var rInstrIpub = rIpub.GetPropertyValue<IEnumerable>("Instructions"); var firstTest = rInstrIpub.FirstOrDefault().GetPropertyValue("TextType"); <--- NULL

When I checked the XML data in umbraco.config, I see that it is saving an empty string for all the TextType properties:

<![CDATA[[ {"key":"23de4eed-b446-4313-b070-0f137b878d41","name":"Preheat oven to 450º F.","ncContentTypeAlias":"ncRecipeInstruction","InstructionText":"Preheat oven to 450º F.","TextType":}, {"key":"fc025a97-21a8-493d-8d17-97040b472348","name":"Brush each pizza crust with olive oil.","ncContentTypeAlias":"ncRecipeInstruction","InstructionText":"Brush each pizza crust with olive oil.","TextType":} ... ]]]>

1 Attachments


Heather L Floyd 18 May 2018, 03:05:59

Might be related to the other Nested Content value-saving issues (U4-10944 & U4-10950)?

Heather L Floyd 18 May 2018, 13:23:50

I Updated to Umbraco v.7.10.4 and still have the same issue.

Heather L Floyd 18 May 2018, 13:56:31

Okay, so I edited the NC Datatype - adding the dropdown value to the label template like "{{InstructionText}} [{{TextType}}]", and then the drop-down data was suddenly appearing in my View correctly. Very peculiar... it seems that the update to v7.10.4 did resolve it (perhaps issue U4-11184 ?) but re-saving the datatype gave it a "kick in the pants"...? The mysteries of programming... At least this seems to be working now.

Heather L Floyd 29 May 2018, 17:34:14

As per @leekelleher U4-11184 is related to this.

Priority: Major

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.10.3, 7.10.4

Due in version:


Story Points: