From 9625ed2001c4ef8798e486dd774b7ff417c31012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 28 Oct 2024 09:29:54 +0100 Subject: [PATCH] feat: don't filter destinations by end date in autocompletion --- src/Repository/DestinationRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Repository/DestinationRepository.php b/src/Repository/DestinationRepository.php index 913c5a6..83f6d2d 100644 --- a/src/Repository/DestinationRepository.php +++ b/src/Repository/DestinationRepository.php @@ -49,8 +49,7 @@ class DestinationRepository extends ServiceEntityRepository $qb->expr()->orX( $qb->expr()->like('destination.product', ':search'), $qb->expr()->like('destination.hotel', ':search'), - $qb->expr()->like('DATE_FORMAT(destination.dateFrom, \'%d.%m.%y\')', ':search'), - $qb->expr()->like('DATE_FORMAT(destination.dateTo, \'%d.%m.%y\')', ':search') + $qb->expr()->like('DATE_FORMAT(destination.dateFrom, \'%d.%m.%y\')', ':search') )) ) ->setParameter('search', '%'.$this->escapeLikeWildcards($search).'%')