summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-11-09 10:58:47 +0100
committermyk%mozilla.org <>2002-11-09 10:58:47 +0100
commit8816b8cb98a7902b722c00cbed6e22b12f176e74 (patch)
treeb8548c08fa5472df8b22943bd4deda444863f56d /attachment.cgi
parentc39803cc45e621f01e0598c7fb875f5e494ebd14 (diff)
downloadbugzilla-8816b8cb98a7902b722c00cbed6e22b12f176e74.tar.gz
bugzilla-8816b8cb98a7902b722c00cbed6e22b12f176e74.tar.xz
Fix for bug 171505: shows disabled flags in the UI
r=bbaetz a=justdave
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi7
1 files changed, 3 insertions, 4 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 33f8c8542..04b86dc33 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -555,12 +555,11 @@ sub edit
SendSQL("SELECT product_id, component_id FROM bugs WHERE bug_id = $bugid");
my ($product_id, $component_id) = FetchSQLData();
my $flag_types = Bugzilla::FlagType::match({ 'target_type' => 'attachment' ,
- 'product_id' => $product_id ,
- 'component_id' => $component_id ,
- 'is_active' => 1});
+ 'product_id' => $product_id ,
+ 'component_id' => $component_id });
foreach my $flag_type (@$flag_types) {
$flag_type->{'flags'} = Bugzilla::Flag::match({ 'type_id' => $flag_type->{'id'},
- 'attach_id' => $::FORM{'id'} });
+ 'attach_id' => $::FORM{'id'} });
}
$vars->{'flag_types'} = $flag_types;