зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
9ec37d691b
Коммит
7a13cd4d15
|
@ -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";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче