diff options
author | lpsolit%gmail.com <> | 2006-04-15 01:50:39 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-04-15 01:50:39 +0200 |
commit | 344149d0e639267412ca0e2ccd95c2872e9350d9 (patch) | |
tree | 27b64e7e1c6e35367803bce5a35f7addfc1337c6 /editflagtypes.cgi | |
parent | bd0e09be136d808154320d61bf2725e2324c2243 (diff) | |
download | bugzilla-344149d0e639267412ca0e2ccd95c2872e9350d9.tar.gz bugzilla-344149d0e639267412ca0e2ccd95c2872e9350d9.tar.xz |
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 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 29a7467ad..bcab4e189 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -359,7 +359,6 @@ sub update { AND (bugs.component_id = i.component_id OR i.component_id IS NULL)) WHERE flags.type_id = ? - AND flags.is_active = 1 AND i.type_id IS NULL', undef, $id); foreach my $flag_id (@$flag_ids) { @@ -373,7 +372,6 @@ sub update { INNER JOIN flagexclusions AS e ON flags.type_id = e.type_id WHERE flags.type_id = ? - AND flags.is_active = 1 AND (bugs.product_id = e.product_id OR e.product_id IS NULL) AND (bugs.component_id = e.component_id @@ -401,8 +399,7 @@ sub confirmDelete # check if we need confirmation to delete: - my $count = Bugzilla::Flag::count({ 'type_id' => $id, - 'is_active' => 1 }); + my $count = Bugzilla::Flag::count({ 'type_id' => $id }); if ($count > 0) { $vars->{'flag_type'} = Bugzilla::FlagType::get($id); |