U4-9911 - Umbraco.MultiNodeTreePicker and Umbraco.MultiNodeTreePicker2 on 7.6.1 return empty value as a property in a macro

Created by Nemanja Stankovic 14 May 2017, 14:22:51 Updated by Nigel Morris 14 Jun 2017, 09:50:12

I have a document type where one of the properties is Umbraco.MultiNodeTreePicker2. When I try to read ids of picked nodes, like I did up until version 7.6, value that I get is: System.Collections.Generic.List`1[Umbraco.Core.Models.IPublishedContent].

When I try to convert it to <string[]> or <int[]> I always get empty values. I tried to extract and convert this in every way possible and I'm still stuck.

I tried the same thing with obsolete Umbraco.MultiNodeTreePicker. Result is the same. I also tested with working code on 7.5.13 and upgraded to 7.6.1. It stopped working after upgrade.

I read on your blog that pickers are modified from version 7.6, so how do you extract values in these new versions?

Thank you.

Comments

Sebastiaan Janssen 15 May 2017, 15:28:42

It's not a list of string or int, it's a list of IPublishedContent. See the docs here: https://our.umbraco.org/documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Multinode-Treepicker2


Nemanja Stankovic 15 May 2017, 17:01:19

Thank you very much! Apologies for the misunderstanding.


Nigel Morris 14 Jun 2017, 09:50:12

Is it possible to add the old (Obsolete) Umbraco.MediaPicker & Umbraco.MultiNodeTreePicker to the property editor in Data Types and how can this be done?


Priority: Major

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.1

Due in version:

Sprint:

Story Points:

Cycle: