From ea8f8b571bbf510f57bd4bc7d06f0bda3ea0ba03 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Tue, 21 Apr 2020 17:05:57 +0200 Subject: [PATCH] FEAT #13126 TIME 0:10 Fix Folder print linked resources back --- src/app/resource/controllers/FolderPrintController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/resource/controllers/FolderPrintController.php b/src/app/resource/controllers/FolderPrintController.php index 66cf8d52a9d..b34f660a897 100755 --- a/src/app/resource/controllers/FolderPrintController.php +++ b/src/app/resource/controllers/FolderPrintController.php @@ -373,7 +373,7 @@ class FolderPrintController if (!Validator::intVal()->validate($linkedResource['resId'])) { return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not an integer']); } - if (!in_array($linkedResource['resId'], $controlResource['linkedResources'])) { + if (!in_array($linkedResource['resId'], $controlResource['linked_resources'])) { return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not linked to resource']); } if (!ResController::hasRightByResId(['resId' => $linkedResource['resId'], 'userId' => $GLOBALS['id']])) { -- GitLab