diff options
author | bbaetz%acm.org <> | 2003-06-03 18:47:37 +0200 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-06-03 18:47:37 +0200 |
commit | 1d057f02b277d29ad4d232d598c49b0344798b40 (patch) | |
tree | 5dd73500b1cf10b51875179f7559c8ec97f0b5be /userprefs.cgi | |
parent | 3a843833f4ab5d07f10e199daa7ec317e03b9959 (diff) | |
download | bugzilla-1d057f02b277d29ad4d232d598c49b0344798b40.tar.gz bugzilla-1d057f02b277d29ad4d232d598c49b0344798b40.tar.xz |
Bug 180635 - Enhance Bugzilla::User to store additional information
r=myk,jake
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 9 |
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; } |