summaryrefslogtreecommitdiff
path: root/app/Api/Procedure/TaskMetadataProcedure.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-24 22:09:13 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-24 22:09:13 -0500
commitfa5c12a61d89769ace452cb4164f35e09d750adf (patch)
treebda9a9d21d5184a107f0fe1ffa630391b0f4ad51 /app/Api/Procedure/TaskMetadataProcedure.php
parent81d14efbd1627827a826eecd54fb17121f952921 (diff)
Empty arrays are serialized to a list instead of a dict (Json API)
Diffstat (limited to 'app/Api/Procedure/TaskMetadataProcedure.php')
-rw-r--r--app/Api/Procedure/TaskMetadataProcedure.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Api/Procedure/TaskMetadataProcedure.php b/app/Api/Procedure/TaskMetadataProcedure.php
index 169482f5..ab6c32d0 100644
--- a/app/Api/Procedure/TaskMetadataProcedure.php
+++ b/app/Api/Procedure/TaskMetadataProcedure.php
@@ -15,7 +15,7 @@ class TaskMetadataProcedure extends BaseProcedure
public function getTaskMetadata($task_id)
{
TaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'getTask', $task_id);
- return $this->taskMetadataModel->getAll($task_id);
+ return (object) $this->taskMetadataModel->getAll($task_id);
}
public function getTaskMetadataByName($task_id, $name)