diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-03 09:27:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-03 09:27:01 +0000 |
commit | 9660db2c4e6b1a86c39e53c5969e9f52baf0dd9e (patch) | |
tree | d0f4b72d44a687973c8afac72fed884cf2792229 /modules | |
parent | 6e1431705e0dba07d87269c4c026252872663185 (diff) | |
download | brdo-9660db2c4e6b1a86c39e53c5969e9f52baf0dd9e.tar.gz brdo-9660db2c4e6b1a86c39e53c5969e9f52baf0dd9e.tar.bz2 |
- Patch #19888 by jhriggs: fixed terms getting lost upon preview.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy.module | 2 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index de86ed445..8fb5163d6 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -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 = '--') { diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index de86ed445..8fb5163d6 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -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 = '--') { |