Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Feb 2011 at 07:00 UTC
Updated:
3 Jan 2014 at 02:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rszrama commentedTagging.
Comment #2
pcambraTagging
Comment #3
rbayliss commentedIndeed, it looks like $form_state['clicked_button'] is for buttons only. The only reason it might be worth changing is that it appears to be headed for deprecation. From form_builder() in form.inc:
Probably not worth a big effort to change what's already written, but it seems like we should all get used to using $form_state['triggering_element'] moving forward.
Comment #4
rfaySee #1049462: Usage of deprecated $form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons
This is just a search and replace.
Here's the patch.
Comment #5
rszrama commentedTested this by using all those buttons and everything seems to work just fine. Thanks for the patch. Committed.