Commit 00145cb0 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents e72feba5 e10c81b2
......@@ -304,7 +304,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;
Supports Markdown
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