Forms API: taxonomy required fields no longer required

m3avrck - October 27, 2005 - 19:03
Project:Drupal
Version:x.y.z
Component:taxonomy.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Just tried adding a category and didn't put in any of the required fields for taxonomy and it still let me. Looks like all of those #required are missing in the taxonomy add vocabulary part.

#1

asimmonds - October 29, 2005 - 04:49
Status:active» needs review

Patch to add #required to the form array. This bug affects all taxonomy form elements other than free-tagging (that already gets the #required if needed)

AttachmentSizeStatusTest resultOperations
taxonomy-node-form-required.patch703 bytesIgnoredNoneNone

#2

asimmonds - November 1, 2005 - 05:37
Status:needs review» active

I'm stupid, I didn't read m3avrck's issue properly. Patch in #2 is for the taxonomy node_form required field bug, unrelated to this issue.

I suspect this bug is form non-validation for the old-style form post handling (eg not formapi _execute model)

Changing back to active

#3

drupalxykon - June 9, 2006 - 08:10
Version:x.y.z» 4.6.2

I see this problem with forum categories (not sure it applies to regular vocabs).

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

-v

#4

killes@www.drop.org - June 9, 2006 - 08:34
Version:4.6.2» x.y.z

vrao: this issue is about forms API which is not present in 4.6.

#5

edmund.kwok - September 14, 2006 - 12:58
Status:active» fixed

In HEAD, for taxonomy, even if there are no terms in the vocabulary and the vocab is required, an error is returned when you do have a term associated with the node. Same goes for forum topics.

Setting this to fixed unless this is reproduced.

#6

Anonymous - September 28, 2006 - 13:01
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.