Bug 410182: Bugzilla crashes when moving a bug into another product when no QA contact is defined and strict_isolation is enabled - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r/a=mkanat

This commit is contained in:
lpsolit%gmail.com 2007-12-30 17:59:09 +00:00
Родитель 8399d52cfa
Коммит 95551b2a7c
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1234,8 +1234,12 @@ sub _check_strict_isolation {
$ccs = $added;
$assignee = $invocant->assigned_to
if $invocant->assigned_to->id != $original->assigned_to->id;
$qa_contact = $invocant->qa_contact
if $invocant->qa_contact->id != $original->qa_contact->id;
if ($invocant->qa_contact
&& (!$original->qa_contact
|| $invocant->qa_contact->id != $original->qa_contact->id))
{
$qa_contact = $invocant->qa_contact;
}
$product = $invocant->product;
}