Fix PHP notices during creation of first project and in subtasks table
This commit is contained in:
parent
03e459fca7
commit
ac2bf9d553
|
|
@ -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
|
||||
--------------
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ class SubtaskStatus extends Base
|
|||
'task' => $task,
|
||||
'subtasks' => $this->subtask->getAll($task['id']),
|
||||
'editable' => true,
|
||||
'redirect' => 'task',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue