aboutsummaryrefslogtreecommitdiffstats
path: root/request.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-25 07:23:33 +0000
committerlpsolit%gmail.com <>2006-07-25 07:23:33 +0000
commit5ecf8a501a52ce675d9990ede5d165f789a7e1fc (patch)
treee72489d1b163186595e1ccf0e4ac1c7534184f72 /request.cgi
parent43dd0fc1e7a1c6f601e30243b363b3e2f358f105 (diff)
downloadbugs-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar
bugs-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar.gz
bugs-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar.bz2
bugs-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar.xz
bugs-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.zip
Bug 343810: Remove Bugzilla::FlagType::get() and implement real flagtype objects - Patch by Frédéric Buclin <LpSolit@gmail.com> a=myk
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi12
1 files changed, 4 insertions, 8 deletions
diff --git a/request.cgi b/request.cgi
index aee9c0387..b41361963 100755
--- a/request.cgi
+++ b/request.cgi
@@ -198,14 +198,10 @@ sub queue {
if (defined $form_type && !grep($form_type eq $_, ("", "all"))) {
# Check if any matching types are for attachments. If not, don't show
# the attachment column in the report.
- my $types = Bugzilla::FlagType::match({ 'name' => $form_type });
- my $has_attachment_type = 0;
- foreach my $type (@$types) {
- if ($type->{'target_type'} eq "attachment") {
- $has_attachment_type = 1;
- last;
- }
- }
+ my $has_attachment_type =
+ Bugzilla::FlagType::count({ 'name' => $form_type,
+ 'target_type' => 'attachment' });
+
if (!$has_attachment_type) { push(@excluded_columns, 'attachment') }
my $quoted_form_type = $dbh->quote($form_type);