From: bugreport%peshkin.net <> Date: Tue, 27 Jul 2004 12:54:12 +0000 (+0000) Subject: Bug 251837: Add UI to add/remove 'My Bugs' link in footer X-Git-Tag: bugzilla-2.18rc2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0126b4bd7a5034db5e80d1578b5e052bb62cb51b;p=thirdparty%2Fbugzilla.git Bug 251837: Add UI to add/remove 'My Bugs' link in footer r=joel a=justdave --- diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index a11c1c380f..5055565e3c 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -24,10 +24,6 @@
diff --git a/userprefs.cgi b/userprefs.cgi index cd73678c9b..f71fdec02c 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; }
- +- Show in
- Footer -Search @@ -40,15 +36,32 @@Forget ++ Show in + Footer + ++ [% FOREACH q = queries %]My Bugs ++ [% filtered_username = user.login FILTER url_quote %] + Run + ++ + ++ + ++ + - [% END %]- - [% q.name FILTER html %] Run @@ -60,6 +73,12 @@ Forget ++ +