Commit 6f91c724 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Allowing the change of sort order update the display (Bug #1304053)

When changing the sort order config variable on account/index.php
we need to force the page to refresh to see the changes.

Change-Id: Iaf63ac3668b28177938243053992d23c11469c93
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 1a9a4081
...@@ -210,6 +210,7 @@ function accountprefs_submit(Pieform $form, $values) { ...@@ -210,6 +210,7 @@ function accountprefs_submit(Pieform $form, $values) {
$oldlang = $USER->get_account_preference('lang'); $oldlang = $USER->get_account_preference('lang');
$oldtheme = $USER->get_account_preference('theme'); $oldtheme = $USER->get_account_preference('theme');
$oldgroupsideblockmaxgroups = $USER->get_account_preference('groupsideblockmaxgroups'); $oldgroupsideblockmaxgroups = $USER->get_account_preference('groupsideblockmaxgroups');
$oldgroupsideblocksortby = $USER->get_account_preference('groupsideblocksortby');
if (get_config('allowmobileuploads')) { if (get_config('allowmobileuploads')) {
// Make sure the mobile token is formatted / saved correctly // Make sure the mobile token is formatted / saved correctly
...@@ -260,6 +261,9 @@ function accountprefs_submit(Pieform $form, $values) { ...@@ -260,6 +261,9 @@ function accountprefs_submit(Pieform $form, $values) {
if (isset($values['groupsideblockmaxgroups']) && $values['groupsideblockmaxgroups'] != $oldgroupsideblockmaxgroups) { if (isset($values['groupsideblockmaxgroups']) && $values['groupsideblockmaxgroups'] != $oldgroupsideblockmaxgroups) {
$reload = true; $reload = true;
} }
if ($values['groupsideblocksortby'] != $oldgroupsideblocksortby) {
$reload = true;
}
$reload = plugin_account_prefs_submit($form, $values) || $reload; $reload = plugin_account_prefs_submit($form, $values) || $reload;
......
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