From 861f461bc5b09ef9f013ce45cf817ea8d1c049ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 14 Feb 2022 20:19:56 +0100 Subject: [PATCH] workflow context for accompanying course document: ensure persons are represented as an array in json --- .../Workflow/AccompanyingCourseDocumentWorkflowHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php b/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php index 7e572c89d..c1e3a7765 100644 --- a/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php +++ b/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php @@ -47,7 +47,7 @@ class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandler } return [ - 'persons' => $persons, + 'persons' => array_values($persons), ]; }