Closed (fixed)
Project:
Select (or other)
Version:
7.x-2.9
Component:
CCK / Field API widget
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2012 at 17:50 UTC
Updated:
1 Apr 2014 at 15:39 UTC
Jump to comment: Most recent, Most recent file
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.