From 4c04dca0d583bf94b313f822ee2e1ad8f0692d6e Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Fri, 12 Jun 2015 13:12:35 -0400 Subject: [PATCH] Fixed failure to redirect to appropriate language prefix when user language preference is changed (DBOINCP-195) --- .../boinc/modules/boincwork/includes/boincwork.forms.inc | 3 +++ 1 file changed, 3 insertions(+) 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 57b6588536..53aeda6065 100644 --- a/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc +++ b/drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc @@ -1648,6 +1648,9 @@ function communityprefs_form_submit($form, &$form_state) { user_save($user, $settings); drupal_set_message(t('Your community preferences have been updated.')); + + // Form will not redirect if storage is set; not good if language changes + unset($form_state['storage']); } /**