From db80870ee8f3a234d4c373f5abe0680df0fe8888 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 31 Mar 2023 18:49:20 -0400 Subject: [PATCH] Provide sorting for attributes and crosscheckAttributes select fields (CO-2629) --- app/src/Model/Table/AttributesTable.php | 6 ++++-- app/src/Model/Table/RuleAttributesTable.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/Model/Table/AttributesTable.php b/app/src/Model/Table/AttributesTable.php index 37507df61..0160ce8d7 100644 --- a/app/src/Model/Table/AttributesTable.php +++ b/app/src/Model/Table/AttributesTable.php @@ -68,12 +68,14 @@ public function initialize(array $config): void { 'attributeGroups' => [ 'type' => 'select', 'model' => 'AttributeGroups', - 'find' => 'filterPrimaryLink' + 'find' => 'filterPrimaryLink', + 'order' => 'name' ], 'attributeMaps' => [ 'type' => 'select', 'model' => 'AttributeMaps', - 'find' => 'filterPrimaryLink' + 'find' => 'filterPrimaryLink', + 'order' => 'name' ] ]); } diff --git a/app/src/Model/Table/RuleAttributesTable.php b/app/src/Model/Table/RuleAttributesTable.php index 68dee6601..feaaa367d 100644 --- a/app/src/Model/Table/RuleAttributesTable.php +++ b/app/src/Model/Table/RuleAttributesTable.php @@ -70,12 +70,14 @@ public function initialize(array $config): void { 'attributes' => [ 'type' => 'select', 'model' => 'Attributes', - 'find' => 'filterMatchgrid' + 'find' => 'filterMatchgrid', + 'order' => 'name' ], 'crosscheckAttributes' => [ 'type' => 'select', 'model' => 'Attributes', - 'find' => 'filterMatchgrid' + 'find' => 'filterMatchgrid', + 'order' => 'name' ], 'searchTypes' => [ 'type' => 'enum',