remove filter on cities page

This commit is contained in:
Tykayn 2025-11-19 22:50:30 +01:00 committed by tykayn
parent 0448d3cc17
commit 952254b5d0
2 changed files with 9 additions and 2 deletions

View file

@ -1205,8 +1205,8 @@ class PublicController extends AbstractController
// Only select Stats that have an empty kind or 'user' kind // Only select Stats that have an empty kind or 'user' kind
$stats = $this->entityManager->getRepository(Stats::class) $stats = $this->entityManager->getRepository(Stats::class)
->createQueryBuilder('s') ->createQueryBuilder('s')
->where('s.kind IS NULL OR s.kind = :user_kind') // ->where('s.kind IS NULL OR s.kind = :user_kind')
->setParameter('user_kind', 'user') // ->setParameter('user_kind', 'user')
->orderBy('s.name', 'ASC') ->orderBy('s.name', 'ASC')
->getQuery() ->getQuery()
->getResult(); ->getResult();

View file

@ -132,6 +132,13 @@
</div> </div>
</div> </div>
</div> </div>
{% else %}
<div class="alert alert-info">
Aucune ville disponible.
<a href="{{ path('app_public_add_city') }}" class="btn btn-success">
<i class="bi bi-plus-circle"></i> Ajouter ma ville
</a>
</div>
{% endif %} {% endif %}