mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 15:30:13 +01:00
Use an enum for the part stock change type
This commit is contained in:
@@ -139,7 +139,7 @@ class LogDataTable implements DataTableTypeInterface
|
||||
if ($context instanceof PartStockChangedLogEntry) {
|
||||
$text .= sprintf(
|
||||
' (<i>%s</i>)',
|
||||
$this->translator->trans('log.part_stock_changed.' . $context->getInstockChangeType())
|
||||
$this->translator->trans('log.part_stock_changed.' . $context->getInstockChangeType()->toExtraShortType())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user