diff --git a/src/Form/BookFilterType.php b/src/Form/BookFilterType.php index 0b3ffd34..4519928f 100644 --- a/src/Form/BookFilterType.php +++ b/src/Form/BookFilterType.php @@ -218,7 +218,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'required' => false, 'mapped' => false, 'target_callback' => function (QueryBuilder $qb, ?string $readValue): void { - if ($readValue !== null && $readValue !== '') { $qb->andWhere($qb->expr()->like('book.extension', ':extension')); $qb->setParameter('extension', $readValue);