Fix PHP notices during creation of first project and in subtasks table

This commit is contained in:
Frederic Guillot 2016-02-08 18:24:15 -05:00
parent 03e459fca7
commit ac2bf9d553
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
Version 1.0.26 (unreleased)
--------------
Bug fixes:
* Fix PHP notices during creation of first project and in subtasks table
Version 1.0.25
--------------

View File

@ -73,7 +73,7 @@ class ProjectCreation extends Base
*/
private function createOrDuplicate(array $values)
{
if ($values['src_project_id'] == 0) {
if (empty($values['src_project_id'])) {
return $this->createNewProject($values);
}

View File

@ -66,6 +66,7 @@ class SubtaskStatus extends Base
'task' => $task,
'subtasks' => $this->subtask->getAll($task['id']),
'editable' => true,
'redirect' => 'task',
));
}
}