summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/ProjectCreation.php2
-rw-r--r--app/Controller/SubtaskStatus.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/ProjectCreation.php b/app/Controller/ProjectCreation.php
index 61ea2586..88f41fcd 100644
--- a/app/Controller/ProjectCreation.php
+++ b/app/Controller/ProjectCreation.php
@@ -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);
}
diff --git a/app/Controller/SubtaskStatus.php b/app/Controller/SubtaskStatus.php
index ef0ec081..4fb82fc0 100644
--- a/app/Controller/SubtaskStatus.php
+++ b/app/Controller/SubtaskStatus.php
@@ -66,6 +66,7 @@ class SubtaskStatus extends Base
'task' => $task,
'subtasks' => $this->subtask->getAll($task['id']),
'editable' => true,
+ 'redirect' => 'task',
));
}
}