making a vocabulary required has no effect
drupalxykon - June 9, 2006 - 12:46
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | taxonomy.module |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | duplicate |
Description
The required marker doesnt appear and sure enough it lets user post nodes without tagging it under the vocabulary I have set as 'required'.
Not sure this is 4.6.2 specific, might be a bug in all 4.6 versions . Also, my site only uses 'forum' node type.
-v

#1
I confirm that the "required" mark does not appear.
Anyway, when a vocabulary is marked as "required", it does fill the dropdown with terms for that vocabulary. Meaning that at least the first term from that list will be used.
Here is the patch for 4.6.9
#2
And here is the patch for HEAD
#3
Rerolled for 5.x-dev
#4
Just to state that the patch for 4.6.9 applies to 4.6.x-dev
#5
$blank doesn't indicate requiredness, it is used as the optional first element of the selection, and is sometimes ''.
And this sort of string check should be more explicit, such as '$blank !== 0'.
#6
I believe this is duplicate now - there's a patch at http://drupal.org/node/180109