From 9660db2c4e6b1a86c39e53c5969e9f52baf0dd9e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 3 Apr 2005 09:27:01 +0000 Subject: - Patch #19888 by jhriggs: fixed terms getting lost upon preview. --- modules/taxonomy.module | 2 +- modules/taxonomy/taxonomy.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 = '--') { -- cgit v1.2.3