From 452362c17a25a3b37b4d12d170654802b6f9ea18 Mon Sep 17 00:00:00 2001 From: Simounet Date: Thu, 31 Aug 2023 11:32:20 +0200 Subject: [PATCH] Untagged entries number removed from the filter's sidebar --- src/Wallabag/CoreBundle/Controller/EntryController.php | 4 ---- .../CoreBundle/Resources/views/Entry/entries.html.twig | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 655217c95..ca9ff56f3 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -675,9 +675,6 @@ class EntryController extends AbstractController } } - $nbEntriesUntagged = $this->entryRepository - ->countUntaggedEntriesByUser($this->getUser()->getId()); - return $this->render( '@WallabagCore/Entry/entries.html.twig', [ 'form' => $form->createView(), @@ -685,7 +682,6 @@ class EntryController extends AbstractController 'currentPage' => $page, 'searchTerm' => $searchTerm, 'isFiltered' => $form->isSubmitted(), - 'nbEntriesUntagged' => $nbEntriesUntagged, ] ); } diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index f3f1488a8..7f1f2592d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -118,9 +118,9 @@

{{ 'entry.filters.title'|trans }}

- {% if current_route != 'untagged' and nbEntriesUntagged != 0 %} + {% if current_route != 'untagged' %} {% endif %}