mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-07 11:39:30 +00:00
Add tests and fix static errors
This commit is contained in:
parent
fa7f3a1da1
commit
2bc39e7791
8 changed files with 576 additions and 25 deletions
|
|
@ -59,10 +59,4 @@ class BulkProviderSearchType extends AbstractType
|
|||
]);
|
||||
$resolver->setRequired('parts');
|
||||
}
|
||||
|
||||
private function getDefaultSearchField(Part $part): string
|
||||
{
|
||||
// Default to MPN if available, otherwise name
|
||||
return $part->getManufacturerProductNumber() ? 'mpn' : 'name';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue