* Delete useless function of task zen.php

This commit is contained in:
tianshujie
2023-06-01 10:45:43 +08:00
parent 128e170330
commit b5332feff9
2 changed files with 3 additions and 19 deletions
+3 -3
View File
@@ -444,7 +444,7 @@ class task extends control
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->members = $this->user->getTeamMemberPairs($task->execution, 'execution', 'nodeleted');
$this->view->assignedTo = !empty($task->team) ? $this->task->getAssignedTo4Multi($task->team, $task) : $assignedTo;
$this->view->canRecordEffort = $this->taskZen->checkRecordEffort($task);
$this->view->canRecordEffort = $this->task->canOperateEffort($task);
$this->view->currentTeam = $currentTeam;
$this->display();
}
@@ -601,7 +601,7 @@ class task extends control
$this->view->title = $this->view->execution->name . $this->lang->colon .$this->lang->task->finish;
$this->view->members = $members;
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->canRecordEffort = $this->taskZen->checkRecordEffort($task);
$this->view->canRecordEffort = $this->task->canOperateEffort($task);
$this->display();
}
@@ -698,7 +698,7 @@ class task extends control
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->members = $this->loadModel('user')->getTeamMemberPairs($task->execution, 'execution', 'nodeleted');
$this->view->assignedTo = $task->assignedTo == '' ? $this->app->user->account : $task->assignedTo;
$this->view->canRecordEffort = $this->taskZen->checkRecordEffort($task);
$this->view->canRecordEffort = $this->task->canOperateEffort($task);
$this->view->currentTeam = $currentTeam;
$this->display();
}