Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
file.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2011 at 16:04 UTC
Updated:
5 Mar 2011 at 02:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedEasy to patch. Not sure how to test that.
Comment #2
Mr 13 commentedComment #4
damien tournoud commented#1: 1031412-file-validate-button.patch queued for re-testing.
Comment #5
andypostDuplicate issue #1049462: Usage of deprecated $form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons has a more sophisticated patch
Do we really need this to change globally maybe better to fix 'clicked_button' itself within formapi?
Comment #6
rfaySince $form_state['clicked_button'] is deprecated, I would prefer to remove its usages (but not its current support in D7) as in the patch in #1049462: Usage of deprecated $form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons.
However, I would like to know what execution path avoids the initialization of $form_state['clicked_button']. That's not supposed to happen.
Comment #7
rfayHere is the patch. I haven't tried it for this use-case, but I imagine it fixes it.
Comment #8
rfayDo you mind if we reverse the duplicate marking? This one deals with only one place this is happening; the other describes the underlying problem.
Marking as duplicate of #1049462: Usage of deprecated $form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons