Closed eden-jh closed 2 years ago
@eden-jh Thank you for reporting this, and for giving detailed reproduction steps - perfect! 🤩
I can reproduce the bug and working on a fix for the next release.
Fixed in commit 1f9462e2c625cd38691bda2756e74b8860f00ee9. It'll be part of upcoming v3.4.0 release.
Which Contentment version are you using?
3.3.1
Which Umbraco version are you using? For example: 8.14.1 - don't just write v8
9.5.0
Bug summary
When changing the List editor of a data list from a single-select to a multi-select, the value of the property in the template is null until the content has been re-saved.
Steps to reproduce
Model.Fruit
)Model.Fruit
is nullI haven't tested every combination of single selection list editor to multi-select list editor, so I can't say for certain that it happens for all of them, but it definitely happens for more than one. (If I recall correctly, I think I confirmed it with radio buttons to checkboxes and dropdowns to multi-select buttons.)
Expected result / actual result
Expected result:
I'd expect the value of Model.Fruit to be a List containing the single selected option, without having to re-save the content.
Actual result:
The value of Model.Fruit is null in the template. You have to save the content again to get the correct value.
Do you have Umbraco ModelsBuilder enabled?
What browsers are you seeing the problem on?
No response