summaryrefslogtreecommitdiff
path: root/app/Controller/Taskmodification.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-05 19:00:40 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-05 19:00:40 -0500
commite2181612b984489e479f52f748c3199c693d986c (patch)
treed4da9f131be6d020137e7862f5f1d9fa1f4963ca /app/Controller/Taskmodification.php
parenta683c17fa7828fabc1b107265a87b07a91322c8f (diff)
Remove time form on task summary page and move that to task edit form
Diffstat (limited to 'app/Controller/Taskmodification.php')
-rw-r--r--app/Controller/Taskmodification.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/app/Controller/Taskmodification.php b/app/Controller/Taskmodification.php
index 0e9316b2..54b4b23a 100644
--- a/app/Controller/Taskmodification.php
+++ b/app/Controller/Taskmodification.php
@@ -23,27 +23,6 @@ class Taskmodification extends Base
}
/**
- * Update time tracking information
- *
- * @access public
- */
- public function time()
- {
- $task = $this->getTask();
- $values = $this->request->getValues();
-
- list($valid, ) = $this->taskValidator->validateTimeModification($values);
-
- if ($valid && $this->taskModification->update($values)) {
- $this->flash->success(t('Task updated successfully.'));
- } else {
- $this->flash->failure(t('Unable to update your task.'));
- }
-
- $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])));
- }
-
- /**
* Edit description form
*
* @access public
@@ -104,6 +83,7 @@ class Taskmodification extends Base
}
$this->dateParser->format($values, array('date_due'));
+ $this->dateParser->format($values, array('date_started'), 'Y-m-d H:i');
$this->response->html($this->helper->layout->task('task_modification/edit_task', array(
'project' => $project,