From 2c01d0549e7908cfd9fd94cd1343b6124610e6fe Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 29 Jun 2011 23:16:35 -0700 Subject: Issue #1049462 by rfay: Fixed Usage of deprecated form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons. --- includes/authorize.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/authorize.inc') diff --git a/includes/authorize.inc b/includes/authorize.inc index 3617d7d03..852860413 100644 --- a/includes/authorize.inc +++ b/includes/authorize.inc @@ -193,7 +193,7 @@ function _authorize_filetransfer_connection_settings_set_defaults(&$element, $ke function authorize_filetransfer_form_validate($form, &$form_state) { // Only validate the form if we have collected all of the user input and are // ready to proceed with updating or installing. - if ($form_state['clicked_button']['#name'] != 'process_updates') { + if ($form_state['triggering_element']['#name'] != 'process_updates') { return; } @@ -224,7 +224,7 @@ function authorize_filetransfer_form_validate($form, &$form_state) { */ function authorize_filetransfer_form_submit($form, &$form_state) { global $base_url; - switch ($form_state['clicked_button']['#name']) { + switch ($form_state['triggering_element']['#name']) { case 'process_updates': // Save the connection settings to the DB. -- cgit v1.2.3