From 5c2713ecfe18ee9a5cad6ee677fb8bdfe4472faa Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 26 Nov 2007 03:45:04 +0000 Subject: [PATCH] =?utf8?q?Bug=20405342:=20"My=20requests"=20is=20broken=20?= =?utf8?q?-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dbkor=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- request.cgi | 11 ++++++++++- template/en/default/global/common-links.html.tmpl | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/request.cgi b/request.cgi index 6c3ff48eeb..c854a17679 100755 --- a/request.cgi +++ b/request.cgi @@ -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; diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index 033b980695..94fed709fd 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -42,7 +42,7 @@ | [% IF user.id %] My Requests + [% user.login FILTER url_quote %]&do_union=1&group=type&action=queue">My Requests [% ELSE %] Requests [% END %] -- 2.47.2