Commit ea79c66c authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#194327 by dvessel, David_Rothstein, catch, theborg: IE form submission button correction was buggy

parent 85cae0d0
......@@ -907,9 +907,14 @@ function form_builder($form_id, $form, &$form_state) {
// Now that we've processed everything, we can go back to handle the funky
// Internet Explorer button-click scenario.
_form_builder_ie_cleanup($form, $form_state);
// After handling the special IE case, we no longer need the buttons collection.
unset($form_state['buttons']);
// We shoud keep the buttons array until the IE clean up function
// has recognized the submit button so the form has been marked
// as submitted. If we already know which button was submitted,
// we don't need the array.
if (!empty($form_state['submitted'])) {
unset($form_state['buttons']);
}
// If some callback set #cache, we need to flip a static flag so later it
// can be found.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment