From 5857031262b8ad98b0db1d11d7c9c7b2583bdff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 22 Dec 2020 14:58:07 +0100 Subject: [PATCH] Fixed query to fetch URL to hash --- src/Wallabag/CoreBundle/Repository/EntryRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 4222f313f..3beda9251 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -378,7 +378,9 @@ class EntryRepository extends EntityRepository { return $this->createQueryBuilder('e') ->where('e.hashedUrl = :empty')->setParameter('empty', '') + ->orWhere('e.hashedUrl is null') ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) + ->andWhere('e.url is not null') ->getQuery() ->getResult(); }