[docgen/template] do not list template wich are inactive

See https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/473
This commit is contained in:
2022-03-02 21:35:16 +01:00
parent 74a84e42a6
commit c83d6d392f
3 changed files with 3 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ final class DocGeneratorTemplateRepository implements ObjectRepository
$builder
->where('t.entity LIKE :entity')
->andWhere($builder->expr()->eq('t.active', "'TRUE'"))
->setParameter('entity', addslashes($entity));
return $builder