Closed (fixed)
Project:
Field Tool
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Jul 2010 at 00:19 UTC
Updated:
2 Aug 2010 at 04:10 UTC
Jump to comment: Most recent file
When there's more than one submit button on the node edit form (eg. when Upload module is enabled), our programmatic form submission may "click" the wrong one to submit the form, resulting in a form submission that does not create/update the node, and does not return an error message. Weird one.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 846890-fieldtool_execute.inc-node_form_clicked_button.patch | 5.63 KB | Matthew Davidson |
Comments
Comment #1
Matthew Davidson commentedDon't like this solution, but it works - or seems to. All comes down to deprecation of the 'op' value and the requirement to set $form_state['clicked_button']. You shouldn't have to do it this clumsy way (overriding yet another function from FormAPI), but it seems that if you set $form_state['clicked_button'] any earlier in the process, it gets clobbered by form_builder().