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

magico - August 23, 2006 - 14:36
Version:4.6.2» 4.6.9
Priority:normal» minor
Status:active» patch (code needs review)

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

AttachmentSize
taxonomy.module.patch_2.txt545 bytes

#2

magico - August 23, 2006 - 14:37

And here is the patch for HEAD

AttachmentSize
taxonomy.module.patch_3.txt326 bytes

#3

magico - January 5, 2007 - 20:42
Version:4.6.9» 5.x-dev

Rerolled for 5.x-dev

AttachmentSize
taxonomy.module.patch_4.txt328 bytes

#4

magico - January 5, 2007 - 20:43

Just to state that the patch for 4.6.9 applies to 4.6.x-dev

#5

drumm - March 23, 2007 - 21:12
Version:5.x-dev» 6.x-dev
Status:patch (code needs review)» patch (code needs work)

$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

JirkaRybka - October 20, 2007 - 13:37
Status:patch (code needs work)» duplicate

I believe this is duplicate now - there's a patch at http://drupal.org/node/180109

 
 

Drupal is a registered trademark of Dries Buytaert.