summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 206a115a9..857665f7c 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -314,8 +314,13 @@ sub SaveFooter {
SendSQL("UPDATE profiles SET mybugslink = " .
SqlQuote($::FORM{'mybugslink'}) . " WHERE userid = $userid");
- # Regenerate cached info about queries in footer.
- $vars->{'user'} = GetUserInfo($::userid);
+ # Make sure that cached queries in the user object are invalidated
+ # so that the footer is correct
+ my $user = Bugzilla->user;
+ $user->flush_queries_cache();
+
+ # Also need to update showmybugslink
+ $user->{showmybugslink} = $::FORM{'mybugslink'} ? 1 : 0;
}