* [bug#56421,done,0.5h] Save relation when bug import to task.

This commit is contained in:
xieqiyu
2024-11-06 10:39:43 +08:00
committed by 胡方舟
parent 716c4ff976
commit 7bbdf7c4b2
+11
View File
@@ -2489,6 +2489,17 @@ class executionModel extends model
$this->afterImportBug($task, $bug);
if(dao::isError()) return false;
if($this->config->edition != 'open')
{
$relation = new stdClass();
$relation->AType = 'bug';
$relation->AID = $bug->id;
$relation->relation = 'transferredto';
$relation->BType = 'task';
$relation->BID = $taskID;
$this->dao->replace(TABLE_RELATION)->data($relation)->exec();
}
}
return $mails;