* Add injection and identify field for the create, view, export bug.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -19,7 +19,7 @@ if(!empty($executionType) && $executionType == 'kanban') $fields->merge('bug.kan
|
||||
$fields->autoLoad('product')
|
||||
->autoLoad('branch', 'module,openedBuild,execution,project,story,task,assignedTo')
|
||||
->autoLoad('module', 'assignedTo,story')
|
||||
->autoLoad('project', 'project,openedBuild,execution,story,task,assignedTo')
|
||||
->autoLoad('project', 'project,openedBuild,execution,story,task,assignedTo,injection,identify')
|
||||
->autoLoad('execution', 'execution,openedBuild,story,task,assignedTo')
|
||||
->autoLoad('allBuilds', 'openedBuild')
|
||||
->autoLoad('allUsers', 'assignedTo')
|
||||
|
||||
@@ -1054,6 +1054,7 @@ class bugZen extends bug
|
||||
$bug = $this->getBuildsForCreate($bug);
|
||||
$bug = $this->getStoriesForCreate($bug);
|
||||
$bug = $this->gettasksForCreate($bug);
|
||||
if($this->config->edition == 'max') $this->view->injectionList = $this->view->identifyList = $this->loadModel('review')->getPairs($bug->projectID, $bug->productID, true);
|
||||
|
||||
$this->view->title = isset($this->products[$bug->productID]) ? $this->products[$bug->productID] . $this->lang->colon . $this->lang->bug->create : $this->lang->bug->create;
|
||||
$this->view->productMembers = $this->getProductMembersForCreate($bug);
|
||||
|
||||
Reference in New Issue
Block a user