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

This commit is contained in:
lpsolit%gmail.com 2006-09-05 13:08:47 +00:00
Родитель 9ec37d691b
Коммит 7a13cd4d15
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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";