Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

MultinodeTreePicker behaviour changed in 0.9.x #179

Closed
JimBobSquarePants opened this issue Jul 17, 2016 · 2 comments
Closed

MultinodeTreePicker behaviour changed in 0.9.x #179

JimBobSquarePants opened this issue Jul 17, 2016 · 2 comments
Labels
Milestone

Comments

@JimBobSquarePants
Copy link

In previous versions assigning a DittoPickerConverter to a MyClass would always return an IEnumberable<MyClass> whether one or many items were picked.

In 0.9.0 when a single item is picked the following exception is thrown.

Additional information: Unable to cast object of type 'System.String[]' to type 'System.Collections.Generic.IEnumerable`1[MyClass]'.

Umbraco Version 7.4.3

@JimBobSquarePants
Copy link
Author

Just added a single to multiple test and it's working. Beginning to suspect this is an Umbraco 7.4.* thing

@JimBobSquarePants
Copy link
Author

So it turns out that the difference was that when searching for attributes on type declarations we were no longer searching the type parameters within generic types. This meant pickers were no longer working without having both UmbracoProperty and UmbracoPicker defined on the property.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants