From 94f70a528b779e939634d4f2c203a68ef8620016 Mon Sep 17 00:00:00 2001 From: "shiyangyangwork@yahoo.cn" Date: Thu, 21 Apr 2011 09:31:50 +0000 Subject: [PATCH] * finished the task #446 --- module/story/model.php | 4 ++-- module/task/control.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index 9729e909ca..75779555ae 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -530,7 +530,7 @@ class storyModel extends model */ public function getProjectStoryPairs($projectID = 0, $productID = 0) { - $stories = $this->dao->select('t2.id, t2.title, t2.module, t3.name AS product') + $stories = $this->dao->select('t2.id, t2.title, t2.module, t2.pri, t2.estimate, t3.name AS product') ->from(TABLE_PROJECTSTORY)->alias('t1') ->leftJoin(TABLE_STORY)->alias('t2') ->on('t1.story = t2.id') @@ -665,7 +665,7 @@ class storyModel extends model /* Format these stories. */ $storyPairs = array('' => ''); - foreach($stories as $story) $storyPairs[$story->id] = $story->id . ':' . $story->title; + foreach($stories as $story) $storyPairs[$story->id] ='ID:' . $story->id . ' ; ' . '优先级:' . $story->pri . ' ; ' . '预计工时:' . $story->estimate . ' ; ' .'需求名称 ' . ':' . $story->title; return $storyPairs; } diff --git a/module/task/control.php b/module/task/control.php index 2ce2b50d12..7b10a394c5 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -71,7 +71,6 @@ class task extends control $stories = $this->story->getProjectStoryPairs($projectID); $members = $this->project->getTeamMemberPairs($projectID, 'nodeleted'); - $header['title'] = $project->name . $this->lang->colon . $this->lang->task->create; $position[] = html::a($browseProjectLink, $project->name); $position[] = $this->lang->task->create;