mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Fixed test errors
This commit is contained in:
parent
f22bff7adc
commit
e0345076c1
2 changed files with 4 additions and 4 deletions
|
|
@ -311,7 +311,7 @@ class ScanController extends AbstractController
|
|||
$input = trim($request->request->getString('input', ''));
|
||||
|
||||
// We cannot use getEnum here, because we get an empty string for mode, when auto mode is selected
|
||||
$mode = $request->request->getString('mode', BarcodeSourceType::class, '');
|
||||
$mode = $request->request->getString('mode', '');
|
||||
if ($mode === '') {
|
||||
$modeEnum = null;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue