summaryrefslogtreecommitdiff
path: root/app/Api/Procedure
diff options
context:
space:
mode:
authorrmjstn <remy.jestin@gmail.com>2017-02-16 02:28:47 +0100
committerFrédéric Guillot <fred@kanboard.net>2017-02-15 20:28:47 -0500
commitce3cab5374864449268c02b3470abbc831ff7c41 (patch)
treee009c001155ba39bef96d39b23b330e1b8ddc1c2 /app/Api/Procedure
parent5376bb9e0cf2aad9b12d6fde1f43f92854b55cf9 (diff)
Add date_started parameter to task API calls (#3042)
Diffstat (limited to 'app/Api/Procedure')
-rw-r--r--app/Api/Procedure/TaskProcedure.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Api/Procedure/TaskProcedure.php b/app/Api/Procedure/TaskProcedure.php
index af67f3de..c43e5876 100644
--- a/app/Api/Procedure/TaskProcedure.php
+++ b/app/Api/Procedure/TaskProcedure.php
@@ -89,7 +89,7 @@ class TaskProcedure extends BaseProcedure
public function createTask($title, $project_id, $color_id = '', $column_id = 0, $owner_id = 0, $creator_id = 0,
$date_due = '', $description = '', $category_id = 0, $score = 0, $swimlane_id = 0, $priority = 0,
$recurrence_status = 0, $recurrence_trigger = 0, $recurrence_factor = 0, $recurrence_timeframe = 0,
- $recurrence_basedate = 0, $reference = '', array $tags = array())
+ $recurrence_basedate = 0, $reference = '', array $tags = array(), $date_started = '')
{
ProjectAuthorization::getInstance($this->container)->check($this->getClassName(), 'createTask', $project_id);
@@ -121,6 +121,7 @@ class TaskProcedure extends BaseProcedure
'reference' => $reference,
'priority' => $priority,
'tags' => $tags,
+ 'date_started' => $date_started,
);
list($valid, ) = $this->taskValidator->validateCreation($values);
@@ -131,7 +132,7 @@ class TaskProcedure extends BaseProcedure
public function updateTask($id, $title = null, $color_id = null, $owner_id = null,
$date_due = null, $description = null, $category_id = null, $score = null, $priority = null,
$recurrence_status = null, $recurrence_trigger = null, $recurrence_factor = null,
- $recurrence_timeframe = null, $recurrence_basedate = null, $reference = null, $tags = null)
+ $recurrence_timeframe = null, $recurrence_basedate = null, $reference = null, $tags = null, $date_started = null)
{
TaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'updateTask', $id);
$project_id = $this->taskFinderModel->getProjectId($id);
@@ -161,6 +162,7 @@ class TaskProcedure extends BaseProcedure
'reference' => $reference,
'priority' => $priority,
'tags' => $tags,
+ 'date_started' => $date_started,
));
list($valid) = $this->taskValidator->validateApiModification($values);