Closed (fixed)
Project:
Drupal core
Version:
4.6.0
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2005 at 21:23 UTC
Updated:
25 May 2005 at 22:58 UTC
_taxonomy_term_select has been changed to use form_select instead of form_item:
return form_select($title, $name .'][', $value, $options, $description, $multiple ? 'size="'. min(12, count($options)) .'"' : 0, $multiple);
This breaks when $multiple is TRUE, as form_select will add "[]" to $name again!
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy-multiple.patch | 517 bytes | wiz-1 |
Comments
Comment #1
Steven commentedPerhaps it's better and cleaner to fix this by checking the type of vocabulary when validating the terms. In fact there is a bug there at the moment where you could still assign multiple terms in a signle select vocabulary by sending out customized POST data.
Comment #2
drummI don't think it is actually broken. I just submitted a new node with two terms selected from each of two vocabularies. And it worked.
Comment #3
wiz-1 commentedHmm... I agree that it seems to work (tried it right now), but the generated HTML is not clean:
Note the "edit[taxonomy][][]", which should read "edit[taxonomy][]". I don't clearly remember in what situation it didn't work for me, but it happened. The patch fixes this situation. The id is not pretty either, but that's another story.
Comment #4
wiz-1 commentedSomebody fixed this in 4.6.0, thanks
Comment #5
(not verified) commented