Fix PHP notices during creation of first project and in subtasks table
This commit is contained in:
@@ -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',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user