From 667a7abdb6d998df719317e101eb08860f1b78d1 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Tue, 27 Jul 2004 12:53:26 +0000 Subject: Bug 251837: Add UI to add/remove 'My Bugs' link in footer r=joel a=justdave --- userprefs.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'userprefs.cgi') 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; } -- cgit v1.2.1