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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user