If you have optgroups in the select widget then the committed code from #1356112: Preserve available_options_php keys has caused the optgroups in a select widget to no longer output correctly. They now simply output as Array.
This is a serious issue as it breaks expected behaviour of the module.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | select_or_other_optgroup_1.patch | 2.43 KB | danielb |
Comments
Comment #1
nicholas.alipaz commentedPerhaps related to #1236360: Default value not working when select box uses optgroup grouping as well. Not sure where the issue is.
Comment #2
danielb commentedtry this
Comment #3
nicholas.alipaz commentedthat is better, but still seems to need something, each optgroup is only showing the last item in the optgroup. All other items seem to be dropped.
Comment #4
nicholas.alipaz commentedI see the issue, change this:
To this:
$optgroup_options = array();needs to be outside the foreach otherwise it keeps getting reset on every iteration. Looks good once this fix is added.Comment #5
danielb commentedAlright cool, I've committed that, will appear in next dev.