Bug 251837: Add UI to add/remove 'My Bugs' link in footer

r=joel
a=justdave


git-svn-id: svn://10.0.0.236/trunk@159899 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2004-07-27 05:54:13 +00:00
parent dd98e093ad
commit 4253758cff
2 changed files with 35 additions and 10 deletions

View File

@@ -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;
}