Add tests and fix static errors

This commit is contained in:
barisgit 2025-08-02 21:14:04 +02:00 committed by Jan Böhmer
parent fa7f3a1da1
commit 2bc39e7791
8 changed files with 576 additions and 25 deletions

View file

@ -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';
}
}