* fix a bug : if the project of task is closed, project is not list.

This commit is contained in:
zhujinyong
2012-12-28 03:26:42 +00:00
parent e9535c219b
commit d5ea39e03f
+4 -1
View File
@@ -212,9 +212,12 @@ class task extends control
die(js::locate($this->createLink('task', 'view', "taskID=$taskID"), 'parent'));
}
$noclosedProjects = $this->project->getPairs('noclosed,nocode');
unset($noclosedProjects[$this->view->project->id]);
$this->view->projects = array($this->view->project->id => $this->view->project->name) + $noclosedProjects;
$this->view->header->title = $this->lang->task->edit;
$this->view->position[] = $this->lang->task->edit;
$this->view->projects = $this->project->getPairs('noclosed,nocode');
$this->view->stories = $this->story->getProjectStoryPairs($this->view->project->id);
$this->view->members = $this->loadModel('user')->appendDeleted($this->view->members, $this->view->task->assignedTo);
$this->view->modules = $this->tree->getOptionMenu($this->view->task->project, $viewType = 'task');