Skip to content

Commit

Permalink
FIX BarcodeFacade now also returns barcode for empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf.mulansky committed Feb 17, 2023
1 parent 544fd44 commit 65d674a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Facades/HttpBarcodeFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function createResponse(ServerRequestInterface $request) : ResponseInt
$value = null;
}

if (! BarcodeDataType::isValidStaticValue($barcodeType) || ! $value) {
if (! BarcodeDataType::isValidStaticValue($barcodeType)) {
$this->getWorkbench()->getLogger()->logException(new FacadeRuntimeError("Cannot create barcode with type '{$barcodeType}' and value '{$value}'"));
return new Response(404);
}
Expand Down

0 comments on commit 65d674a

Please sign in to comment.