Skip to content

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

Merged
merged 2 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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