From 292bdc2f52e5ed07812a211cc5a119f6e45060ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Rodr=C3=ADguez=20Carmona?= Date: Fri, 14 Oct 2022 14:43:26 +0200 Subject: [PATCH] ERATRANS-442: Fixed issue that makes sort applied to be overwritten by default bundle sort. --- src/ListExecutionManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ListExecutionManager.php b/src/ListExecutionManager.php index 29e2f921..53c578f0 100644 --- a/src/ListExecutionManager.php +++ b/src/ListExecutionManager.php @@ -97,7 +97,7 @@ public function executeList(ListPageConfiguration $configuration): ?ListExecutio // If we have a specific sort, we use that first, followed by the default // bundle sort. Otherwise, just the bundle sort. $sort = $sort ? [$sort['name'] => $sort['direction']] : []; - if ($bundle_sort) { + if ($bundle_sort && empty($sort)) { $sort[$bundle_sort['name']] = $bundle_sort['direction']; }