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 /attachment.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 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/attachment.cgi b/attachment.cgi index 7f66c9984..3939564a8 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -713,8 +713,7 @@ sub enter 'product_id' => $product_id, 'component_id' => $component_id}); $vars->{'flag_types'} = $flag_types; - $vars->{'any_flags_requesteeble'} = grep($_->{'is_requesteeble'}, - @$flag_types); + $vars->{'any_flags_requesteeble'} = grep($_->is_requesteeble, @$flag_types); print $cgi->header(); @@ -835,11 +834,11 @@ sub edit { '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'}, + $flag_type->{'flags'} = Bugzilla::Flag::match({ 'type_id' => $flag_type->id, 'attach_id' => $attachment->id }); } $vars->{'flag_types'} = $flag_types; - $vars->{'any_flags_requesteeble'} = grep($_->{'is_requesteeble'}, @$flag_types); + $vars->{'any_flags_requesteeble'} = grep($_->is_requesteeble, @$flag_types); $vars->{'attachment'} = $attachment; $vars->{'bugsummary'} = $bugsummary; $vars->{'isviewable'} = $isviewable; |