Fixed problem that MPN was not used as search field

Fixes issue #277 and #276
This commit is contained in:
Jan Böhmer 2023-04-22 23:26:48 +02:00
parent ccaad1c305
commit 1eb9c38aee
2 changed files with 3 additions and 1 deletions

View file

@ -96,7 +96,7 @@ class PartSearchFilter implements FilterInterface
$fields_to_search[] = 'orderdetails.supplierpartnr';
}
if($this->mpn) {
$fields_to_search[] = 'part.manufacturer_product_url';
$fields_to_search[] = 'part.manufacturer_product_number';
}
if($this->supplier) {
$fields_to_search[] = 'suppliers.name';