]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 405342: "My requests" is broken - Patch by Frédéric Buclin <LpSolit@gmail.com...
authorlpsolit%gmail.com <>
Mon, 26 Nov 2007 03:45:04 +0000 (03:45 +0000)
committerlpsolit%gmail.com <>
Mon, 26 Nov 2007 03:45:04 +0000 (03:45 +0000)
request.cgi
template/en/default/global/common-links.html.tmpl

index 6c3ff48eeb052606d343f012626e9866cd431ab6..c854a176799b5b047bea760334e38a269459db2c 100755 (executable)
@@ -42,6 +42,7 @@ use Bugzilla::Component;
 # Make sure the user is logged in.
 my $user = Bugzilla->login();
 my $cgi = Bugzilla->cgi;
+my $dbh = Bugzilla->dbh;
 my $template = Bugzilla->template;
 my $action = $cgi->param('action') || '';
 
@@ -67,7 +68,15 @@ if ($action eq 'queue') {
     queue();
 }
 else {
-    $template->process('request/queue.html.tmpl', {requests => {}})
+    my $flagtypes = $dbh->selectcol_arrayref('SELECT DISTINCT(name) FROM flagtypes
+                                              ORDER BY name');
+    my @types = ('all', @$flagtypes);
+
+    my $vars = {};
+    $vars->{'products'} = $user->get_selectable_products;
+    $vars->{'types'} = \@types;
+    $vars->{'requests'} = {};
+    $template->process('request/queue.html.tmpl', $vars)
       || ThrowTemplateError($template->error());
 }
 exit;
index 033b980695bc8884b024a33285f97938b43e3de3..94fed709fd0511ed981ebddaa56dfc9bb0f35b57 100644 (file)
@@ -42,7 +42,7 @@
     <span class="separator">| </span>
     [% IF user.id %]
       <a href="request.cgi?requester=[% user.login FILTER url_quote %]&amp;requestee=
-               [% user.login FILTER url_quote %]&amp;do_union=1&amp;group=type">My Requests</a>
+               [% user.login FILTER url_quote %]&amp;do_union=1&amp;group=type&amp;action=queue">My Requests</a>
     [% ELSE %]
       <a href="request.cgi">Requests</a>
     [% END %]