From 33a811e83b62d17fcaa9a202aacfb7c417d36b9d Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Wed, 26 Oct 2016 12:31:37 -0500 Subject: [PATCH] Drupal: Fix bug where Cancel link in AHAH form resulting in wrong page loading. Changed cancel link from current URL to a pre-defined URL, the computing preference edit page. https://dev.gridrepublic.org/browse/DBOINCP-307 --- .../boinc/modules/boincwork/includes/boincwork.forms.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc b/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc index 3daed31e6a..c860ec9755 100644 --- a/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc +++ b/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc @@ -524,7 +524,7 @@ function boincwork_generalprefs_form(&$form_state, $venue, $prefs_preset = null, '#suffix' => '' ); $form['prefs']['form control tabs'] = array( - '#value' => '
  • ' . l(bts('Cancel'), $_GET['q']) . '
  • ' + '#value' => '
  • ' . l(bts('Cancel'), drupal_get_path_alias("account/prefs/computing/edit")) . '
  • ' ); if ($venue AND $venue != 'generic') { global $base_path;