aboutsummaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-09-05 20:08:47 +0000
committerlpsolit%gmail.com <>2006-09-05 20:08:47 +0000
commit6836981ab03ade4b7fb0af9c7ec081a1448ec969 (patch)
tree84e3ae1d0e76035852325f41f7aa031d04489844 /editflagtypes.cgi
parentb001c2915072a89b1134e1f4033cb0bfb94c4498 (diff)
downloadbugs-6836981ab03ade4b7fb0af9c7ec081a1448ec969.tar
bugs-6836981ab03ade4b7fb0af9c7ec081a1448ec969.tar.gz
bugs-6836981ab03ade4b7fb0af9c7ec081a1448ec969.tar.bz2
bugs-6836981ab03ade4b7fb0af9c7ec081a1448ec969.tar.xz
bugs-6836981ab03ade4b7fb0af9c7ec081a1448ec969.zip
Bug 345354: editflagtypes.cgi should remove requestees when a flagtype is no longer specifically requestable - Patch by Frédéric Buclin <LpSolit@gmail.com> a=myk
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index 1164177f5..2c03c4f1f 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -417,6 +417,13 @@ sub update {
Bugzilla::Flag::clear($flag_id, $bug, $attachment);
}
+ # Now silently remove requestees from flags which are no longer
+ # specifically requestable.
+ if (!$cgi->param('is_requesteeble')) {
+ $dbh->do('UPDATE flags SET requestee_id = NULL WHERE type_id = ?',
+ undef, $id);
+ }
+
$vars->{'name'} = $cgi->param('name');
$vars->{'message'} = "flag_type_changes_saved";