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.

Comments

Matthew Davidson’s picture

Status: Active » Fixed
StatusFileSize
new5.63 KB

Don'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().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.