Skip to content

Commit

Permalink
[Admin][UX] Add more searchable fields to autocompletes
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate authored and GSadee committed May 13, 2024
1 parent 72411ad commit 6e256e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function configureOptions(OptionsResolver $resolver): void
'class' => $this->productAttributeClass,
'choice_name' => 'name',
'choice_value' => 'code',
'searchable_fields' => ['code', 'translations.name'],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function configureOptions(OptionsResolver $resolver): void
'class' => $this->productClass,
'choice_name' => 'name',
'choice_value' => 'code',
'searchable_fields' => ['code', 'translations.name'],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function configureOptions(OptionsResolver $resolver): void
'class' => $this->productVariantClass,
'choice_name' => 'descriptor',
'choice_value' => 'code',
'searchable_fields' => ['code'],
'searchable_fields' => ['code', 'translations.name'],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function configureOptions(OptionsResolver $resolver): void
'class' => $this->taxonClass,
'choice_label' => 'fullname',
'choice_value' => 'code',
'searchable_fields' => ['code', 'translations.name'],
]);
}

Expand Down

0 comments on commit 6e256e6

Please sign in to comment.