diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-24 22:09:13 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-24 22:09:13 -0500 |
commit | fa5c12a61d89769ace452cb4164f35e09d750adf (patch) | |
tree | bda9a9d21d5184a107f0fe1ffa630391b0f4ad51 /app/Api/Procedure/ActionProcedure.php | |
parent | 81d14efbd1627827a826eecd54fb17121f952921 (diff) |
Empty arrays are serialized to a list instead of a dict (Json API)
Diffstat (limited to 'app/Api/Procedure/ActionProcedure.php')
-rw-r--r-- | app/Api/Procedure/ActionProcedure.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Api/Procedure/ActionProcedure.php b/app/Api/Procedure/ActionProcedure.php index 4043dbb9..72fb9bbe 100644 --- a/app/Api/Procedure/ActionProcedure.php +++ b/app/Api/Procedure/ActionProcedure.php @@ -15,17 +15,17 @@ class ActionProcedure extends BaseProcedure { public function getAvailableActions() { - return $this->actionManager->getAvailableActions(); + return (object) $this->actionManager->getAvailableActions(); } public function getAvailableActionEvents() { - return $this->eventManager->getAll(); + return (object) $this->eventManager->getAll(); } public function getCompatibleActionEvents($action_name) { - return $this->actionManager->getCompatibleEvents($action_name); + return (object) $this->actionManager->getCompatibleEvents($action_name); } public function removeAction($action_id) |