summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
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";