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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| taxonomy_defaults.module-6.x-1.1-beta2-formapi_validation_error.patch | 614 bytes |

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