Improve project move view

This commit is contained in:
Frédéric Guillot
2014-08-31 20:44:58 -08:00
parent 7e44dee903
commit 7dd0a24411
2 changed files with 21 additions and 12 deletions

View File

@@ -436,6 +436,9 @@ class Task extends Base
$task = $this->getTask();
$values = $task;
$errors = array();
$projects_list = $this->project->getAvailableList($this->acl->getUserId());
unset($projects_list[$task['project_id']]);
if ($this->request->isPost()) {
@@ -457,7 +460,7 @@ class Task extends Base
'values' => $values,
'errors' => $errors,
'task' => $task,
'projects_list' => $this->project->getAvailableList($this->acl->getUserId()),
'projects_list' => $projects_list,
'menu' => 'tasks',
'title' => t('Move the task to another project')
)));