diff --git a/trunk/module/story/control.php b/trunk/module/story/control.php index d20aaa089a..e62297e118 100644 --- a/trunk/module/story/control.php +++ b/trunk/module/story/control.php @@ -143,6 +143,15 @@ class story extends control } } + /* 需求的任务列表。*/ + public function tasks($storyID, $projectID = 0) + { + $this->loadModel('task'); + $tasks = $this->task->getStoryTaskPairs($storyID, $projectID); + $this->assign('tasks', $tasks); + $this->display(); + } + /* Ajax: 获取某一个项目的需求列表。*/ public function ajaxGetProjectStories($projectID, $productID = 0, $storyID = 0) { diff --git a/trunk/module/story/view/tasks.html.php b/trunk/module/story/view/tasks.html.php new file mode 100644 index 0000000000..6d615418de --- /dev/null +++ b/trunk/module/story/view/tasks.html.php @@ -0,0 +1,6 @@ +"; +} +?>