mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 03:08:51 +02:00
Use new user select type for log filter
This commit is contained in:
parent
f7293508ff
commit
69fdc85c99
1 changed files with 2 additions and 2 deletions
|
@ -23,6 +23,7 @@ namespace App\Form\Filters\Constraints;
|
||||||
use App\DataTables\Filters\Constraints\EntityConstraint;
|
use App\DataTables\Filters\Constraints\EntityConstraint;
|
||||||
use App\Entity\UserSystem\User;
|
use App\Entity\UserSystem\User;
|
||||||
use App\Form\Type\StructuralEntityType;
|
use App\Form\Type\StructuralEntityType;
|
||||||
|
use App\Form\Type\UserSelectType;
|
||||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
|
@ -51,8 +52,7 @@ class UserEntityConstraintType extends AbstractType
|
||||||
'filter.entity_constraint.operator.NEQ' => '!=',
|
'filter.entity_constraint.operator.NEQ' => '!=',
|
||||||
];
|
];
|
||||||
|
|
||||||
$builder->add('value', EntityType::class, [
|
$builder->add('value', UserSelectType::class, [
|
||||||
'class' => User::class,
|
|
||||||
'required' => false,
|
'required' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue