Empty arrays are serialized to a list instead of a dict (Json API)
This commit is contained in:
parent
81d14efbd1
commit
fa5c12a61d
|
|
@ -17,6 +17,7 @@ Regressions:
|
|||
Bug fixes:
|
||||
|
||||
* Fix wrong datetime formatting when task form shows validation errors
|
||||
* Empty arrays are serialized to a list instead of a dict (Json API)
|
||||
|
||||
Version 1.0.37 (Jan 14, 2017)
|
||||
-----------------------------
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class MeProcedure extends BaseProcedure
|
|||
|
||||
public function getMyProjectsList()
|
||||
{
|
||||
return $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId());
|
||||
return (object) $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId());
|
||||
}
|
||||
|
||||
public function getMyOverdueTasks()
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ class ProjectPermissionProcedure extends BaseProcedure
|
|||
public function getProjectUsers($project_id)
|
||||
{
|
||||
ProjectAuthorization::getInstance($this->container)->check($this->getClassName(), 'getProjectUsers', $project_id);
|
||||
return $this->projectUserRoleModel->getAllUsers($project_id);
|
||||
return (object) $this->projectUserRoleModel->getAllUsers($project_id);
|
||||
}
|
||||
|
||||
public function getAssignableUsers($project_id, $prepend_unassigned = false)
|
||||
{
|
||||
ProjectAuthorization::getInstance($this->container)->check($this->getClassName(), 'getAssignableUsers', $project_id);
|
||||
return $this->projectUserRoleModel->getAssignableUsersList($project_id, $prepend_unassigned);
|
||||
return (object) $this->projectUserRoleModel->getAssignableUsersList($project_id, $prepend_unassigned);
|
||||
}
|
||||
|
||||
public function addProjectUser($project_id, $user_id, $role = Role::PROJECT_MEMBER)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ class TaskTagProcedure extends BaseProcedure
|
|||
public function getTaskTags($task_id)
|
||||
{
|
||||
TaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'getTaskTags', $task_id);
|
||||
return $this->taskTagModel->getList($task_id);
|
||||
return (object) $this->taskTagModel->getList($task_id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue