Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Provide sorting for attributes and crosscheckAttributes select fields…
… (CO-2629) (#63)

* Provide sorting for attributes and crosscheckAttributes select fields (CO-2629)

* Ensure sort order is provided (CO-2629)
arlen committed May 5, 2023
1 parent 9c5b0e7 commit d918df0
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions 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' => 'ASC']
],
'attributeMaps' => [
'type' => 'select',
'model' => 'AttributeMaps',
'find' => 'filterPrimaryLink'
'find' => 'filterPrimaryLink',
'order' => ['name' => 'ASC']
]
]);
}
6 changes: 4 additions & 2 deletions 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' => 'ASC']
],
'crosscheckAttributes' => [
'type' => 'select',
'model' => 'Attributes',
'find' => 'filterMatchgrid'
'find' => 'filterMatchgrid',
'order' => ['name' => 'ASC']
],
'searchTypes' => [
'type' => 'enum',

0 comments on commit d918df0

Please sign in to comment.