Position parameter for Subtask Api proc. update
The objective of this PR is to add support for: - [ ] Adding "Position" parameter for Subtask Api Procedure "updateSubtask" method. Background: I'm working on an Android Client for Kanboard using Flutter Framework. In order to update subtasks positions, I added the "position" parameter and managed the rest of the logic in the App. Best Regards!
This commit is contained in:
@@ -48,7 +48,7 @@ class SubtaskProcedure extends BaseProcedure
|
|||||||
return $valid ? $this->subtaskModel->create($values) : false;
|
return $valid ? $this->subtaskModel->create($values) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateSubtask($id, $task_id, $title = null, $user_id = null, $time_estimated = null, $time_spent = null, $status = null)
|
public function updateSubtask($id, $task_id, $title = null, $user_id = null, $time_estimated = null, $time_spent = null, $status = null, $position = null)
|
||||||
{
|
{
|
||||||
TaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'updateSubtask', $task_id);
|
TaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'updateSubtask', $task_id);
|
||||||
|
|
||||||
@@ -60,6 +60,7 @@ class SubtaskProcedure extends BaseProcedure
|
|||||||
'time_estimated' => $time_estimated,
|
'time_estimated' => $time_estimated,
|
||||||
'time_spent' => $time_spent,
|
'time_spent' => $time_spent,
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
|
'position' => $position
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user