If I edit a node after it has been created, the form that shows up does not have the categories already chosen for the node selected. If I don't reselect the same taxonomy term I get an "illegal choice" error when I try to submit the edited node. The "illegal choice" error should not appear at all (what if I want to change the category?) and the taxonomy term initially chosen when the node was created should be selected by default when editing (otherwise people forget).

Comments

riccardoR’s picture

Status: Active » Closed (duplicate)

This issue has been already reported several times.
Fix recently committed.

See: http://drupal.org/node/45281

and also
http://drupal.org/node/45454
http://drupal.org/node/45335

stefano@tipic.com’s picture

Component: node.module » taxonomy.module
Priority: Normal » Critical
Status: Closed (duplicate) » Active

This error is still present in the latest cvs version, when you edit a node having one or more vocabularies set to multiple + not required.
If none of the required categories is selected, both preview and submit generate an errore message "Illegale choice in -vocabularyname-". If you choose the "none" item for not required vocabularies, it works.
I guess the taxonomy form should set at least the default item "none" for not required vocabularies, when no other item is selected.

greggles’s picture

Status: Active » Closed (duplicate)

I tried this with today's CVS and could not repeat it so I'm marking it as a dup again.

I tried out a couple scenarios of adding/removing/editing terms that were multiple/single select but that were not required items - is that the correct scenario?