diff options
author | lpsolit%gmail.com <> | 2006-04-14 23:50:39 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-04-14 23:50:39 +0000 |
commit | 344149d0e639267412ca0e2ccd95c2872e9350d9 (patch) | |
tree | 27b64e7e1c6e35367803bce5a35f7addfc1337c6 /attachment.cgi | |
parent | bd0e09be136d808154320d61bf2725e2324c2243 (diff) | |
download | bugs-344149d0e639267412ca0e2ccd95c2872e9350d9.tar bugs-344149d0e639267412ca0e2ccd95c2872e9350d9.tar.gz bugs-344149d0e639267412ca0e2ccd95c2872e9350d9.tar.bz2 bugs-344149d0e639267412ca0e2ccd95c2872e9350d9.tar.xz bugs-344149d0e639267412ca0e2ccd95c2872e9350d9.zip |
Bug 322285: Cancelling a flag should remove it completely from the DB - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/attachment.cgi b/attachment.cgi index a824ab71e..c212c6f36 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -836,8 +836,7 @@ sub viewall { $a->{'isviewable'} = isViewable($a->{'contenttype'}); - $a->{'flags'} = Bugzilla::Flag::match({ 'attach_id' => $a->{'attachid'}, - 'is_active' => 1 }); + $a->{'flags'} = Bugzilla::Flag::match({ 'attach_id' => $a->{'attachid'} }); } # Retrieve the bug summary (for displaying on screen) and assignee. @@ -1151,8 +1150,7 @@ sub edit { 'component_id' => $component_id }); foreach my $flag_type (@$flag_types) { $flag_type->{'flags'} = Bugzilla::Flag::match({ 'type_id' => $flag_type->{'id'}, - 'attach_id' => $attachment->id, - 'is_active' => 1 }); + 'attach_id' => $attachment->id }); } $vars->{'flag_types'} = $flag_types; $vars->{'any_flags_requesteeble'} = grep($_->{'is_requesteeble'}, @$flag_types); |