From 38d5dbc7d805c421ea3585bb1135b3c0863103f1 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Fri, 31 May 2024 10:52:22 +0200 Subject: [PATCH] related #35591 - bug 10 : remove rearrange btn for attributes and attributes groups --- .../Grid/Definition/Factory/AttributeGridDefinitionFactory.php | 3 --- .../Definition/Factory/AttributeGroupGridDefinitionFactory.php | 3 --- src/Core/Search/Filters/AttributeGroupFilters.php | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Core/Grid/Definition/Factory/AttributeGridDefinitionFactory.php b/src/Core/Grid/Definition/Factory/AttributeGridDefinitionFactory.php index 6efc57c917a0a..75824c688058e 100644 --- a/src/Core/Grid/Definition/Factory/AttributeGridDefinitionFactory.php +++ b/src/Core/Grid/Definition/Factory/AttributeGridDefinitionFactory.php @@ -243,9 +243,6 @@ protected function getFilters() ]) ->setAssociatedColumn('name') ) - ->add((new Filter('position', ReorderPositionsButtonType::class)) - ->setAssociatedColumn('position') - ) ->add((new Filter('actions', SearchAndResetType::class)) ->setAssociatedColumn('actions') ->setTypeOptions([ diff --git a/src/Core/Grid/Definition/Factory/AttributeGroupGridDefinitionFactory.php b/src/Core/Grid/Definition/Factory/AttributeGroupGridDefinitionFactory.php index 728ac8d153d46..53a673def99d9 100644 --- a/src/Core/Grid/Definition/Factory/AttributeGroupGridDefinitionFactory.php +++ b/src/Core/Grid/Definition/Factory/AttributeGroupGridDefinitionFactory.php @@ -198,9 +198,6 @@ protected function getFilters() ]) ->setAssociatedColumn('name') ) - ->add((new Filter('position', ReorderPositionsButtonType::class)) - ->setAssociatedColumn('position') - ) ->add((new Filter('actions', SearchAndResetType::class)) ->setAssociatedColumn('actions') ->setTypeOptions([ diff --git a/src/Core/Search/Filters/AttributeGroupFilters.php b/src/Core/Search/Filters/AttributeGroupFilters.php index 2843a4f471f6f..76b6f98da89ff 100644 --- a/src/Core/Search/Filters/AttributeGroupFilters.php +++ b/src/Core/Search/Filters/AttributeGroupFilters.php @@ -45,7 +45,7 @@ public static function getDefaults() return [ 'limit' => 50, 'offset' => 0, - 'orderBy' => 'id', + 'orderBy' => 'position', 'sortOrder' => 'asc', 'filters' => [], ];