mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Allow to sort by user in log data table
This commit is contained in:
parent
eb07820523
commit
55aabddd41
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ class LogDataTable implements DataTableTypeInterface
|
||||||
|
|
||||||
$dataTable->add('user', TextColumn::class, [
|
$dataTable->add('user', TextColumn::class, [
|
||||||
'label' => 'log.user',
|
'label' => 'log.user',
|
||||||
|
'orderField' => 'user.name',
|
||||||
'render' => function ($value, AbstractLogEntry $context): string {
|
'render' => function ($value, AbstractLogEntry $context): string {
|
||||||
$user = $context->getUser();
|
$user = $context->getUser();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue