mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed other placeholders besides the IPN Barcodes
This commit is contained in:
parent
cf11320789
commit
9732b71f85
2 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@ parameters:
|
||||||
|
|
||||||
checkUninitializedProperties: true
|
checkUninitializedProperties: true
|
||||||
|
|
||||||
checkFunctionNameCase: true
|
checkFunctionNameCase: false
|
||||||
|
|
||||||
checkAlwaysTrueInstanceof: false
|
checkAlwaysTrueInstanceof: false
|
||||||
checkAlwaysTrueCheckTypeFunctionCall: false
|
checkAlwaysTrueCheckTypeFunctionCall: false
|
||||||
|
|
|
@ -75,7 +75,8 @@ final class BarcodeProvider implements PlaceholderProviderInterface
|
||||||
return $this->barcodeGenerator->generateHTMLBarcode($label_options, $label_target);
|
return $this->barcodeGenerator->generateHTMLBarcode($label_options, $label_target);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($label_target instanceof Part || $label_target instanceof PartLot) {
|
if (($label_target instanceof Part || $label_target instanceof PartLot)
|
||||||
|
&& str_starts_with($placeholder, '[[IPN_BARCODE_')) {
|
||||||
if ($label_target instanceof PartLot) {
|
if ($label_target instanceof PartLot) {
|
||||||
$label_target = $label_target->getPart();
|
$label_target = $label_target->getPart();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue