Commit 6836981a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 345354: editflagtypes.cgi should remove requestees when a flagtype is no…

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
parent b001c291
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment