diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-12 11:11:10 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-12 11:11:10 -0400 |
commit | c104d866588cb6e515009fdac5f0f9f5fa1e0eb3 (patch) | |
tree | 2c4a2054e856a249ee1a32992cd2976ca8214162 /app/Controller | |
parent | bc98748c0d5b1e1c4d08f16b58db8aea9b5fb5ce (diff) |
Remove edit recurrence from the task menu
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Task.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 16bb408f..676dccbe 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -454,7 +454,6 @@ class Task extends Base public function recurrence() { $task = $this->getTask(); - $ajax = $this->request->isAjax() || $this->request->getIntegerParam('ajax'); if ($this->request->isPost()) { @@ -471,12 +470,7 @@ class Task extends Base $this->session->flashError(t('Unable to update your task.')); } - if ($ajax) { - $this->response->redirect($this->helper->url->to('board', 'show', array('project_id' => $task['project_id']))); - } - else { - $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']))); - } + $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']))); } } else { @@ -488,19 +482,13 @@ class Task extends Base 'values' => $values, 'errors' => $errors, 'task' => $task, - 'ajax' => $ajax, 'recurrence_status_list' => $this->task->getRecurrenceStatusList(), 'recurrence_trigger_list' => $this->task->getRecurrenceTriggerList(), 'recurrence_timeframe_list' => $this->task->getRecurrenceTimeframeList(), 'recurrence_basedate_list' => $this->task->getRecurrenceBasedateList(), ); - if ($ajax) { - $this->response->html($this->template->render('task/edit_recurrence', $params)); - } - else { - $this->response->html($this->taskLayout('task/edit_recurrence', $params)); - } + $this->response->html($this->taskLayout('task/edit_recurrence', $params)); } /** |