* Add injection and identify field for the create, view, export bug.

This commit is contained in:
tianshujie
2024-04-17 15:51:25 +08:00
parent 0f8e5c8f56
commit 062c8d021d
4 changed files with 15 additions and 1 deletions
+7
View File
@@ -164,6 +164,13 @@ class bugModel extends model
if($bug->toTask) $bug->toTaskTitle = $this->bugTao->getNameFromTable($bug->toTask, TABLE_TASK, 'name');
if($bug->relatedBug) $bug->relatedBugTitles = $this->bugTao->getBugPairsByList($bug->relatedBug);
if($this->config->edition == 'max')
{
$identifyList = ($bug->injection || $bug->identify) ? $this->loadModel('review')->getPairs($bug->project, $bug->product, true) : array();
$bug->injectionTitle = zget($identifyList, $bug->injection, '');
$bug->identifyTitle = zget($identifyList, $bug->identify, '');
}
$bug->linkMRTitles = $this->loadModel('mr')->getLinkedMRPairs($bugID, 'bug');
$bug->toCases = $this->bugTao->getCasesFromBug($bugID);
$bug->files = $this->file->getByObject('bug', $bugID);