U4-4160 - v7 - Media Picker value type changes between int and string

Created by Jeavon Leopold 30 Jan 2014, 13:18:32 Updated by Stephan 30 Jan 2014, 15:22:07

Relates to: U4-3776

If a media picker has nothing or single item selected it returns an int rather than a string, it should always return a string using a value converter in the same way as the MNTP picker

Comments

Stephan 30 Jan 2014, 13:56:19

I should close this as duplicating U4-3776. Jeavon, any reason why you created that issue again?


Jeavon Leopold 30 Jan 2014, 13:58:58

This is a different editor, this time it's multi media picker, I will submit a PR in a minute or two


Stephan 30 Jan 2014, 14:00:19

Ah yes of course it's different. Fixed, don't bother with the PR, I'll push the fix in a few minutes.


Jeavon Leopold 30 Jan 2014, 14:02:19

Cool, make sure the converter is for Constants.PropertyEditors.MultipleMediaPickerAlias and not Constants.PropertyEditors.MediaPickerAlias


Stephan 30 Jan 2014, 14:10:12

Just pushed 56cd1ce into 7.0.3... it creates a MustBeStringValueConverter that currently supports Constants...MultiNodeTreePickerAlias, and Constants...MultipleMediaPickerAlias, and can be extended for any property editor that has to return a string. Better than creating plenty of converters that all do the same thing. Making sense?


Jeavon Leopold 30 Jan 2014, 14:55:26

Brilliant, I'm sure that will be useful for others in the future!


Stephan 30 Jan 2014, 15:22:02

Considering it fixed.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.2

Due in version: 7.0.3

Sprint:

Story Points:

Cycle: