mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 03:38:47 +02:00
Added internal part number (IPN) as label placeholders
This fixes issue #306
This commit is contained in:
parent
d6500c45aa
commit
c6b6616ee3
3 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,10 @@ final class PartProvider implements PlaceholderProviderInterface
|
|||
return $part->getManufacturerProductNumber();
|
||||
}
|
||||
|
||||
if ('[[IPN]]' === $placeholder) {
|
||||
return $part->getIpn() ?? '';
|
||||
}
|
||||
|
||||
if ('[[TAGS]]' === $placeholder) {
|
||||
return $part->getTags();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue