From b920ece0b531d05fc0ae3674011b18e5f0bc1c6d Mon Sep 17 00:00:00 2001 From: Thomas Hackl <hackl@data-quest.de> Date: Mon, 15 Jul 2024 12:17:40 +0000 Subject: [PATCH] =?UTF-8?q?Resolve=20"search/courses=20l=C3=A4dt=20nicht,?= =?UTF-8?q?=20wenn=20in=20der=20URL=20der=20Parameter=20=E2=80=9Ecid?= =?UTF-8?q?=E2=80=9C=20steht"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4394 Merge request studip/studip!3208 --- lib/classes/JsonApi/Routes/Tree/ChildrenOfTreeNode.php | 1 + lib/classes/JsonApi/Routes/Tree/CoursesOfTreeNode.php | 2 +- lib/classes/JsonApi/Routes/Tree/TreeShow.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/classes/JsonApi/Routes/Tree/ChildrenOfTreeNode.php b/lib/classes/JsonApi/Routes/Tree/ChildrenOfTreeNode.php index 6419d03c6ce..313b892cac1 100644 --- a/lib/classes/JsonApi/Routes/Tree/ChildrenOfTreeNode.php +++ b/lib/classes/JsonApi/Routes/Tree/ChildrenOfTreeNode.php @@ -9,6 +9,7 @@ use JsonApi\JsonApiController; class ChildrenOfTreeNode extends JsonApiController { + protected $allowUnrecognizedParams = true; protected $allowedFilteringParameters = ['visible']; protected $allowedIncludePaths = [ diff --git a/lib/classes/JsonApi/Routes/Tree/CoursesOfTreeNode.php b/lib/classes/JsonApi/Routes/Tree/CoursesOfTreeNode.php index 623e6198520..5ad91f04009 100644 --- a/lib/classes/JsonApi/Routes/Tree/CoursesOfTreeNode.php +++ b/lib/classes/JsonApi/Routes/Tree/CoursesOfTreeNode.php @@ -11,8 +11,8 @@ use JsonApi\JsonApiController; class CoursesOfTreeNode extends JsonApiController { + protected $allowUnrecognizedParams = true; protected $allowedFilteringParameters = ['q', 'semester', 'semclass', 'recursive', 'ids']; - protected $allowedIncludePaths = [ 'blubber-threads', 'end-semester', diff --git a/lib/classes/JsonApi/Routes/Tree/TreeShow.php b/lib/classes/JsonApi/Routes/Tree/TreeShow.php index 1eaa7972c6e..50c38815591 100644 --- a/lib/classes/JsonApi/Routes/Tree/TreeShow.php +++ b/lib/classes/JsonApi/Routes/Tree/TreeShow.php @@ -14,6 +14,7 @@ use JsonApi\JsonApiController; class TreeShow extends JsonApiController { + protected $allowUnrecognizedParams = true; protected $allowedIncludePaths = [ 'children', 'courseinfo', -- GitLab