Keep the checkbox 'another subtask' activated, see #295
This commit is contained in:
@@ -39,6 +39,7 @@ class Subtask extends Base
|
|||||||
$this->response->html($this->taskLayout('subtask_create', array(
|
$this->response->html($this->taskLayout('subtask_create', array(
|
||||||
'values' => array(
|
'values' => array(
|
||||||
'task_id' => $task['id'],
|
'task_id' => $task['id'],
|
||||||
|
'another_subtask' => $this->request->getIntegerParam('another_subtask', 0)
|
||||||
),
|
),
|
||||||
'errors' => array(),
|
'errors' => array(),
|
||||||
'users_list' => $this->projectPermission->getUsersList($task['project_id']),
|
'users_list' => $this->projectPermission->getUsersList($task['project_id']),
|
||||||
@@ -70,7 +71,7 @@ class Subtask extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($values['another_subtask']) && $values['another_subtask'] == 1) {
|
if (isset($values['another_subtask']) && $values['another_subtask'] == 1) {
|
||||||
$this->response->redirect('?controller=subtask&action=create&task_id='.$task['id']);
|
$this->response->redirect('?controller=subtask&action=create&task_id='.$task['id'].'&another_subtask=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->response->redirect('?controller=task&action=show&task_id='.$task['id'].'#subtasks');
|
$this->response->redirect('?controller=task&action=show&task_id='.$task['id'].'#subtasks');
|
||||||
|
|||||||
@@ -275,7 +275,6 @@ Kanboard.Project = (function() {
|
|||||||
|
|
||||||
// Initialization
|
// Initialization
|
||||||
$(function() {
|
$(function() {
|
||||||
//alert($(window).width());
|
|
||||||
if ($("#board").length) {
|
if ($("#board").length) {
|
||||||
Kanboard.Board.Init();
|
Kanboard.Board.Init();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user