* adjust the UI.

* fix some errors.
This commit is contained in:
wangchunsheng
2010-04-14 02:19:52 +00:00
parent 5dd802734a
commit 99fcfe8851
11 changed files with 142 additions and 138 deletions
+4 -1
View File
@@ -236,7 +236,7 @@ class projectModel extends model
/* 导入任务。*/
public function importTask($projectID)
{
$tasks = $this->dao->select('id, project, owner, story')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
$tasks = $this->dao->select('id, project, owner, story, consumed')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
/* 更新task表。*/
foreach($tasks as $task)
@@ -250,6 +250,9 @@ class projectModel extends model
$this->loadModel('action')->create('task', $task->id, 'moved', '', $task->project);
}
/* 去掉story=0的记录。*/
unset($stories[0]);
/* 将没有关联进来的用户加入到团队中。*/
$teamMembers = $this->getTeamMemberPairs($projectID);
foreach($owners as $account => $preProjectID)