aboutsummaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-27 12:53:26 +0000
committerbugreport%peshkin.net <>2004-07-27 12:53:26 +0000
commit667a7abdb6d998df719317e101eb08860f1b78d1 (patch)
tree50a3dcc69d4ed09b40c19878768b675b6e4b2836 /userprefs.cgi
parent9a63d0051976d8b781c3a96aece9edece34bdc89 (diff)
downloadbugs-667a7abdb6d998df719317e101eb08860f1b78d1.tar
bugs-667a7abdb6d998df719317e101eb08860f1b78d1.tar.gz
bugs-667a7abdb6d998df719317e101eb08860f1b78d1.tar.bz2
bugs-667a7abdb6d998df719317e101eb08860f1b78d1.tar.xz
bugs-667a7abdb6d998df719317e101eb08860f1b78d1.zip
Bug 251837: Add UI to add/remove 'My Bugs' link in footer
r=joel a=justdave
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index cd73678c9..f71fdec02 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -298,6 +298,7 @@ sub DoPermissions {
sub DoSavedSearches() {
+ $vars->{'user'} = Bugzilla->user;
$vars->{'queries'} = Bugzilla->user->queries;
}
@@ -315,6 +316,11 @@ sub SaveSavedSearches() {
}
Bugzilla->user->flush_queries_cache;
+
+ my $showmybugslink = defined($cgi->param("showmybugslink")) ? 1 : 0;
+ $dbh->do("UPDATE profiles SET mybugslink = $showmybugslink " .
+ "WHERE userid = " . Bugzilla->user->id);
+ Bugzilla->user->{'showmybugslink'} = $showmybugslink;
}