Handle the case of tasks with bad previous positions

This commit is contained in:
Frédéric Guillot
2014-09-08 21:44:50 +02:00
parent 7540e74a56
commit 8c6df9ef0c
3 changed files with 73 additions and 28 deletions

View File

@@ -37,10 +37,6 @@ class Task extends Base
'category_id' => $this->request->getIntegerParam('category_id'),
);
if ($values['column_id'] == 0) {
$values['column_id'] = $this->board->getFirstColumn($values['project_id']);
}
list($valid,) = $this->task->validateCreation($values);
if ($valid && $this->task->create($values)) {