mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-11 13:39:30 +00:00
Fixed phpunit tests
This commit is contained in:
parent
d10d29e590
commit
afcbbe0f43
5 changed files with 11 additions and 8 deletions
|
|
@ -105,11 +105,11 @@ final class PartProvider implements PlaceholderProviderInterface
|
|||
}
|
||||
|
||||
if ('[[M_STATUS]]' === $placeholder) {
|
||||
if ('' === $part->getManufacturingStatus()) {
|
||||
if (null === $part->getManufacturingStatus()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->translator->trans('m_status.'.$part->getManufacturingStatus());
|
||||
return $this->translator->trans($part->getManufacturingStatus()->toTranslationKey());
|
||||
}
|
||||
|
||||
$parsedown = new Parsedown();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue