U4-11272 - Dropdown Flexible not being converted to string

Created by David Peck 26 Apr 2018, 14:40:27 Updated by Sebastiaan Janssen 20 Aug 2018, 13:58:31

Tags: PR

Relates to: U4-11574

Using the ModelsBuilder with the VS Custom Tool, a property of type Umbraco.Dropdown.Flexible is being returned as the type object. I presume this is because the property value converter meta data has not been setup to state the type as string, but what do I know?


James Coxhead 30 May 2018, 12:58:59

@david, this property editor is indeed missing a value converter. This has caught me out on a project that I'm working on so I've got a fix in progress.

James Coxhead 31 May 2018, 13:01:23

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

Sebastiaan Janssen 20 Aug 2018, 13:58:31

I didn't realize this at the time but it seems like that means the behavior changed between 7.11 and 7.12.

So from 7.12 on we get a string array back if you configure the datatype to have multiple values, in that case you will always need to do a foreach over the values (even if none or only 1 is selected). If you configure it to only allow a single value to be selected, you always get a string back.

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Easy


Backwards Compatible: False

Fix Submitted:

Affected versions: 7.10.3, 7.10.4

Due in version: 7.12.0


Story Points: