mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-23 03:41:34 +00:00
Added label placeholders to add a barcode version of the IPN to a label
This fixes issue #373
This commit is contained in:
parent
3c52e57a44
commit
5e326bca12
9 changed files with 243 additions and 60 deletions
|
|
@ -76,11 +76,11 @@ final class BarcodeContentGenerator
|
|||
{
|
||||
$type = $this->classToString(self::URL_MAP, $target);
|
||||
|
||||
return $this->urlGenerator->generate('scan_qr', [
|
||||
'type' => $type,
|
||||
return $this->urlGenerator->generate('scan_qr', [
|
||||
'type' => $type,
|
||||
'id' => $target->getID() ?? 0,
|
||||
'_locale' => null,
|
||||
], UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
], UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue