[drupal-devel] [bug] Problem with recent form_item / form_select change

drumm drupal-devel at drupal.org
Fri Mar 18 19:16:35 UTC 2005


Issue status update for http://drupal.org/node/19011

 Project:      Drupal
 Version:      cvs
 Component:    taxonomy.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  wiz
 Updated by:   drumm
 Status:       patch

I 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.


drumm



Previous comments:
------------------------------------------------------------------------

March 16, 2005 - 15:23 : wiz

Attachment: http://drupal.org/files/issues/taxonomy-multiple.patch (517 bytes)

_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!


------------------------------------------------------------------------

March 18, 2005 - 02:31 : Steven

Perhaps 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.





More information about the drupal-devel mailing list