Commit 9660db2c authored by Dries's avatar Dries
Browse files

- Patch #19888 by jhriggs: fixed terms getting lost upon preview.

parent 6e143170
......@@ -769,7 +769,7 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti
}
}
return form_select($title, $name .'][', $value, $options, $description, $multiple ? 'size="'. min(12, count($options)) .'"' : 0, $multiple);
return form_select($title, $name . ($multiple ? '' : ']['), $value, $options, $description, $multiple ? 'size="'. min(12, count($options)) .'"' : 0, $multiple);
}
function _taxonomy_depth($depth, $graphic = '--') {
......
......@@ -769,7 +769,7 @@ function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $descripti
}
}
return form_select($title, $name .'][', $value, $options, $description, $multiple ? 'size="'. min(12, count($options)) .'"' : 0, $multiple);
return form_select($title, $name . ($multiple ? '' : ']['), $value, $options, $description, $multiple ? 'size="'. min(12, count($options)) .'"' : 0, $multiple);
}
function _taxonomy_depth($depth, $graphic = '--') {
......
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