* fix bug #1313.
This commit is contained in:
@@ -779,6 +779,7 @@ class task extends control
|
||||
$task = $this->view->task;
|
||||
$members = $this->loadModel('user')->getPairs('noletter');
|
||||
|
||||
$this->view->users = $members;
|
||||
if(!empty($task->team))
|
||||
{
|
||||
$task->openedBy = $this->task->getNextUser(array_keys($task->team), $task->assignedTo);
|
||||
@@ -789,7 +790,7 @@ class task extends control
|
||||
$this->view->title = $this->view->project->name . $this->lang->colon .$this->lang->task->finish;
|
||||
$this->view->position[] = $this->lang->task->finish;
|
||||
$this->view->members = $members;
|
||||
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -822,6 +823,7 @@ class task extends control
|
||||
$this->view->title = $this->view->project->name . $this->lang->colon .$this->lang->task->pause;
|
||||
$this->view->position[] = $this->lang->task->pause;
|
||||
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -1129,7 +1129,7 @@ class taskModel extends model
|
||||
if(!empty($task->parent)) $task->parentName = $this->dao->findById($task->parent)->from(TABLE_TASK)->fetch('name');
|
||||
|
||||
$teams = $this->dao->select('*')->from(TABLE_TEAM)->where('task')->eq($taskID)->orderBy('order_desc')->fetchGroup('task', 'account');
|
||||
foreach($teams as $key => $team) $teams[$key] = array_reverse($team);
|
||||
foreach($teams as $key => $team) $teams[$key] = array_reverse($team, true);
|
||||
$task->team = isset($teams[$taskID]) ? $teams[$taskID] : array();
|
||||
foreach($children as $child) $child->team = isset($teams[$child->id]) ? $teams[$child->id] : array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user