From 62e45384429d831f088608394510ff7f510e6548 Mon Sep 17 00:00:00 2001 From: Weissheiten Wien Date: Thu, 4 May 2023 12:33:52 +0200 Subject: [PATCH] Update SortRecursiveByIndexOperation.php The example for using this function states the wrong operation - it should be called "sortRecursiveByIndex". Using this in a wrong way will result in a Neos error claiming an "untrusted context" and lead devs on the wrong track. When I experienced the described problem it has been fixed with the help of @lorenzulrich - thank you --- .../Eel/FlowQueryOperations/SortRecursiveByIndexOperation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Fusion/Eel/FlowQueryOperations/SortRecursiveByIndexOperation.php b/Classes/Fusion/Eel/FlowQueryOperations/SortRecursiveByIndexOperation.php index 9dfdcb2..7e66981 100644 --- a/Classes/Fusion/Eel/FlowQueryOperations/SortRecursiveByIndexOperation.php +++ b/Classes/Fusion/Eel/FlowQueryOperations/SortRecursiveByIndexOperation.php @@ -15,7 +15,7 @@ * * Use it like this: * - * ${q(node).children().sortRecursive(['ASC'|'DESC'])} + * ${q(node).children().sortRecursiveByIndex(['ASC'|'DESC'])} */ class SortRecursiveByIndexOperation extends AbstractOperation {