aboutsummaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-06-03 16:47:37 +0000
committerbbaetz%acm.org <>2003-06-03 16:47:37 +0000
commit1d057f02b277d29ad4d232d598c49b0344798b40 (patch)
tree5dd73500b1cf10b51875179f7559c8ec97f0b5be /userprefs.cgi
parent3a843833f4ab5d07f10e199daa7ec317e03b9959 (diff)
downloadbugs-1d057f02b277d29ad4d232d598c49b0344798b40.tar
bugs-1d057f02b277d29ad4d232d598c49b0344798b40.tar.gz
bugs-1d057f02b277d29ad4d232d598c49b0344798b40.tar.bz2
bugs-1d057f02b277d29ad4d232d598c49b0344798b40.tar.xz
bugs-1d057f02b277d29ad4d232d598c49b0344798b40.zip
Bug 180635 - Enhance Bugzilla::User to store additional information
r=myk,jake
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;
}