diff options
author | lpsolit%gmail.com <> | 2006-07-25 07:23:33 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-25 07:23:33 +0000 |
commit | 5ecf8a501a52ce675d9990ede5d165f789a7e1fc (patch) | |
tree | e72489d1b163186595e1ccf0e4ac1c7534184f72 /request.cgi | |
parent | Bug 345359: Prevent Flag::clear from deleting a deleted flag when checking th... (diff) | |
download | bugzilla-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar.gz bugzilla-5ecf8a501a52ce675d9990ede5d165f789a7e1fc.tar.bz2 bugzilla-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-x | request.cgi | 12 |
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); |