Commit f0b4717c authored by Jake Blatchford's avatar Jake Blatchford Committed by Aaron Wells
Browse files

Bug 1497341: Allowing opt group select fields to preeserve array keys

When the keys are integers


Change-Id: I7904f4225e8cf17e2ecd6b54d1fcdbeb7c2b7c77
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 1368bd17
......@@ -256,7 +256,7 @@ function pieform_element_select_get_options($element) {
$options = array();
foreach ($element['optgroups'] as $optgroup) {
$options = array_merge($options, $optgroup['options']);
$options = $options + $optgroup['options'];
return $options;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment