mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
parent
967be4451a
commit
e8ec536a5a
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ final class PartsDataTable implements DataTableTypeInterface
|
||||||
if ($this->security->isGranted('@storelocations.read')) {
|
if ($this->security->isGranted('@storelocations.read')) {
|
||||||
$dataTable->add('storelocation', TextColumn::class, [
|
$dataTable->add('storelocation', TextColumn::class, [
|
||||||
'label' => $this->translator->trans('part.table.storeLocations'),
|
'label' => $this->translator->trans('part.table.storeLocations'),
|
||||||
|
'orderField' => 'storelocations.name',
|
||||||
'render' => function ($value, Part $context) {
|
'render' => function ($value, Part $context) {
|
||||||
$tmp = [];
|
$tmp = [];
|
||||||
foreach ($context->getPartLots() as $lot) {
|
foreach ($context->getPartLots() as $lot) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue