Fix PHP notices during creation of first project and in subtasks table
This commit is contained in:
@@ -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
|
Version 1.0.25
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class ProjectCreation extends Base
|
|||||||
*/
|
*/
|
||||||
private function createOrDuplicate(array $values)
|
private function createOrDuplicate(array $values)
|
||||||
{
|
{
|
||||||
if ($values['src_project_id'] == 0) {
|
if (empty($values['src_project_id'])) {
|
||||||
return $this->createNewProject($values);
|
return $this->createNewProject($values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ class SubtaskStatus extends Base
|
|||||||
'task' => $task,
|
'task' => $task,
|
||||||
'subtasks' => $this->subtask->getAll($task['id']),
|
'subtasks' => $this->subtask->getAll($task['id']),
|
||||||
'editable' => true,
|
'editable' => true,
|
||||||
|
'redirect' => 'task',
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user