* [misc] Remove pms code to biz.

This commit is contained in:
xieqiyu
2024-10-12 17:03:21 +08:00
committed by 王于听
parent 25f85ccc29
commit 2a9a98fbc0
2 changed files with 11 additions and 23 deletions
+11 -12
View File
@@ -383,18 +383,17 @@ class task extends control
/* Execute workflow hooks if edition is not open. */
if($this->config->edition != 'open') $this->executeHooks($taskID);
$this->view->title = "TASK#$task->id $task->name / $execution->name";
$this->view->execution = $execution;
$this->view->task = $task;
$this->view->actions = $this->loadModel('action')->getList('task', $taskID);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('task', $taskID);
$this->view->product = $this->tree->getProduct($task->module);
$this->view->modulePath = $this->tree->getParents($task->module);
$this->view->linkMRTitles = $this->loadModel('mr')->getLinkedMRPairs($taskID, 'task');
$this->view->linkCommits = $this->loadModel('repo')->getCommitsByObject($taskID, 'task');
$this->view->hasGitRepo = $this->taskZen->checkGitRepo($execution->id);
$this->view->relatedObjects = $this->loadModel('custom')->getRelatedObjectList($task->id, 'task');
$this->view->title = "TASK#$task->id $task->name / $execution->name";
$this->view->execution = $execution;
$this->view->task = $task;
$this->view->actions = $this->loadModel('action')->getList('task', $taskID);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('task', $taskID);
$this->view->product = $this->tree->getProduct($task->module);
$this->view->modulePath = $this->tree->getParents($task->module);
$this->view->linkMRTitles = $this->loadModel('mr')->getLinkedMRPairs($taskID, 'task');
$this->view->linkCommits = $this->loadModel('repo')->getCommitsByObject($taskID, 'task');
$this->view->hasGitRepo = $this->taskZen->checkGitRepo($execution->id);
$this->display();
}