summaryrefslogtreecommitdiff
path: root/includes/authorize.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:16:35 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:16:35 -0700
commit2c01d0549e7908cfd9fd94cd1343b6124610e6fe (patch)
tree2350e1b07e0c96e92f5e3b60c28500f35fec0b9d /includes/authorize.inc
parent2608c670ababfd04a4ce85393db7ebe4a0c14188 (diff)
downloadbrdo-2c01d0549e7908cfd9fd94cd1343b6124610e6fe.tar.gz
brdo-2c01d0549e7908cfd9fd94cd1343b6124610e6fe.tar.bz2
Issue #1049462 by rfay: Fixed Usage of deprecated form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons.
Diffstat (limited to 'includes/authorize.inc')
-rw-r--r--includes/authorize.inc4
1 files changed, 2 insertions, 2 deletions
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.