mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 12:59:36 +00:00
Refactored LCSCBarcocdeScanResult to be an value object like the other Barcode results
This commit is contained in:
parent
76584c3d99
commit
338c5ebf0b
7 changed files with 74 additions and 47 deletions
|
|
@ -170,7 +170,7 @@ class ScanController extends AbstractController
|
|||
{
|
||||
// LCSC
|
||||
if ($scanResult instanceof LCSCBarcodeScanResult) {
|
||||
$lcscCode = $scanResult->getPC();
|
||||
$lcscCode = $scanResult->lcscCode;
|
||||
if ($lcscCode !== null && $lcscCode !== '') {
|
||||
return $this->generateUrl('info_providers_create_part', [
|
||||
'providerKey' => 'lcsc',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue