Form API won't validate when editing a node with non tag taxonomy with some value set

pounard - October 26, 2009 - 13:52
Project:Taxonomy Defaults
Version:6.x-1.1-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This is because you convert a 'select' element into a 'value' element, but without changing the '#default_value' to '#value', here is a proper way to do it, patch attached.

AttachmentSize
taxonomy_defaults.module-6.x-1.1-beta2-formapi_validation_error.patch614 bytes

#1

pounard - October 26, 2009 - 13:52

You can even remove the unset( .. ) line just under the last +'ed line.

 
 

Drupal is a registered trademark of Dries Buytaert.