remove filter on cities page
This commit is contained in:
parent
0448d3cc17
commit
952254b5d0
2 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue