]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 152632: My bugs query in the footer doesn't use the mybugstemplate parameter...
authorjouni%heikniemi.net <>
Mon, 24 Jun 2002 00:36:00 +0000 (00:36 +0000)
committerjouni%heikniemi.net <>
Mon, 24 Jun 2002 00:36:00 +0000 (00:36 +0000)
Patch by m@lcolm.org.uk (Malcolm Scott), r=jouni,gerv

index.cgi
template/en/default/global/useful-links.html.tmpl
template/en/default/index.html.tmpl

index 05f15d288df425964a588c1e3312840e4ef4ff43..d5ee0d28dcfc8f9d8b6ff2a63ac6bc806a873ae3 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -54,7 +54,6 @@ quietly_check_login();
 ###############################################################################
 
 $vars->{'username'} = $::COOKIE{'Bugzilla_login'} || '';
-$vars->{'subst'} = { 'userid' => $vars->{'username'} };
 
 # Return the appropriate HTTP response headers.
 print "Content-Type: text/html\n\n";
index 9e2f3040c36c01d6717fcd202255d7c06d87831c..807c316b64289ad80c08b4cf045f3b20b9b55a0b 100644 (file)
@@ -98,7 +98,8 @@
       
       <td colspan="3">
         [% IF user.showmybugslink %]
-          <a href="buglist.cgi?bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;email1=[% user.login FILTER url_quote %]&amp;emailtype1=exact&amp;emailassigned_to1=1&amp;emailreporter1=1">My&nbsp;Bugs</a>
+          [% filtered_username = user.login FILTER url_quote %]
+          <a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My&nbsp;Bugs</a>
           [% print_pipe = 1 %]
         [% END %]
 
index 08804d414622aa8b3c447050cd76b370fe0d2a34..0b1f28e80c55688acc076f64a00ddc4dc0d1c771 100644 (file)
@@ -58,7 +58,6 @@ function addSidebar() {
   <a href="reports.cgi">Get summary reports</a><br>
   </p><p>
 [% IF username %]
-  <a href="[% PerformSubsts(Param('mybugstemplate'), subst) %]">My Bugs</a><br>
   <a href="userprefs.cgi">Change password or user preferences</a><br>
   <a href="relogin.cgi">Logout [% username FILTER html %]</a><br>
 [% ELSE %]