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 /Bugzilla/Bug.pm | |
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 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 445e13ec6..c0063aa14 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -429,8 +429,7 @@ sub flag_types { $flag_type->{'flags'} = Bugzilla::Flag::match( { 'bug_id' => $self->bug_id, 'type_id' => $flag_type->{'id'}, - 'target_type' => 'bug', - 'is_active' => 1 }); + 'target_type' => 'bug' }); } $self->{'flag_types'} = $flag_types; @@ -515,8 +514,7 @@ sub show_attachment_flags { 'component_id' => $self->{'component_id'} }); my $num_attachment_flags = Bugzilla::Flag::count( { 'target_type' => 'attachment', - 'bug_id' => $self->bug_id, - 'is_active' => 1 }); + 'bug_id' => $self->bug_id }); $self->{'show_attachment_flags'} = ($num_attachment_flag_types || $num_attachment_flags); |