Skip to content

Commit

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

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

* Ensure sort order is provided (CO-2629)
  • Loading branch information
arlen authored May 5, 2023
1 parent 9c5b0e7 commit d918df0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/src/Model/Table/AttributesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
]
]);
}
Expand Down
6 changes: 4 additions & 2 deletions app/src/Model/Table/RuleAttributesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d918df0

Please sign in to comment.