* [bug#56000,doing,0.5h] set stories by moduleID.

This commit is contained in:
tianshujie
2024-10-16 11:10:26 +08:00
committed by 刘梦艺
parent b74311fd4b
commit 4e7a43a3af
+11 -2
View File
@@ -252,7 +252,7 @@ class taskZen extends task
*/
protected function buildEditForm(int $taskID): void
{
$task = $this->view->task;
$task = $this->view->task;
/* Get the task parent id,name pairs. */
$tasks = $this->task->getParentTaskPairs($this->view->execution->id, strVal($task->parent));
@@ -280,8 +280,17 @@ class taskZen extends task
$taskMembers = $this->view->members;
}
/* Get execution stories. */
$moduleID = $task->module;
if($moduleID)
{
$moduleID = $this->loadModel('tree')->getStoryModule($moduleID);
$moduleID = $this->tree->getAllChildID($moduleID);
}
$stories = $this->story->getExecutionStoryPairs($this->view->execution->id, 0, 'all', $moduleID, 'full', 'active', 'story', false);
$this->view->title = $this->lang->task->edit . 'TASK' . $this->lang->hyphen . $this->view->task->name;
$this->view->stories = $this->story->getExecutionStoryPairs($this->view->execution->id, 0, 'all', '', 'full', 'active', 'story', false);
$this->view->stories = $this->story->addGradeLabel($stories);
$this->view->tasks = $tasks;
$this->view->taskMembers = $taskMembers;
$this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed', "{$task->openedBy},{$task->canceledBy},{$task->closedBy}");