* finish task #5325.

This commit is contained in:
wangyidong
2019-03-18 16:55:58 +08:00
parent 641c3d5890
commit e925ae51e9
7 changed files with 157 additions and 10 deletions
+9
View File
@@ -177,6 +177,14 @@ class task extends control
$members = $this->project->getTeamMemberPairs($projectID, 'nodeleted');
$moduleOptionMenu = $this->tree->getTaskOptionMenu($projectID);
/* Get no test stories. */
$testStoryIdList = $this->dao->select('story')->from(TABLE_TASK)->where('project')->eq($projectID)->andWhere('story')->in(array_keys($stories))->fetchPairs('story', 'story');
$noTestStories = array();
foreach($stories as $id => $title)
{
if(!isset($testStoryIdList[$id])) $noTestStories[$id] = $title;
}
$title = $project->name . $this->lang->colon . $this->lang->task->create;
$position[] = html::a($taskLink, $project->name);
$position[] = $this->lang->task->common;
@@ -196,6 +204,7 @@ class task extends control
$this->view->task = $task;
$this->view->users = $users;
$this->view->stories = $stories;
$this->view->noTestStories = $noTestStories;
$this->view->members = $members;
$this->view->moduleOptionMenu = $moduleOptionMenu;
$this->display();