mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 15:58:19 +01:00
Added ipn to possible columns in project BOM view
This fixes issue #418
This commit is contained in:
@@ -100,7 +100,16 @@ class ProjectBomEntriesDataTable implements DataTableTypeInterface
|
||||
throw new \Exception('This should never happen!');
|
||||
},
|
||||
])
|
||||
|
||||
->add('ipn', TextColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.ipn'),
|
||||
'orderField' => 'part.ipn',
|
||||
'visible' => false,
|
||||
'render' => function ($value, ProjectBOMEntry $context) {
|
||||
if($context->getPart() instanceof Part) {
|
||||
return $context->getPart()->getIpn();
|
||||
}
|
||||
}
|
||||
])
|
||||
->add('description', MarkdownColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.description'),
|
||||
'data' => function (ProjectBOMEntry $context) {
|
||||
|
||||
Reference in New Issue
Block a user