mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
[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:
parent
74a84e42a6
commit
c83d6d392f
@ -23,6 +23,7 @@ and this project adheres to
|
|||||||
* [thirdparty] Fix display of multiple contact badges so they wrap onto next line (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/482)
|
* [thirdparty] Fix display of multiple contact badges so they wrap onto next line (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/482)
|
||||||
* [confidential] Fix position of toggle button so it does not cover text nor fall outside of box (no issue)
|
* [confidential] Fix position of toggle button so it does not cover text nor fall outside of box (no issue)
|
||||||
* [parcours] Fix edit of both thirdparty and contact name (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/474)
|
* [parcours] Fix edit of both thirdparty and contact name (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/474)
|
||||||
|
* [template] do not list inactive templates (for doc generator)
|
||||||
|
|
||||||
## Test releases
|
## Test releases
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ final class DocGeneratorTemplateRepository implements ObjectRepository
|
|||||||
|
|
||||||
$builder
|
$builder
|
||||||
->where('t.entity LIKE :entity')
|
->where('t.entity LIKE :entity')
|
||||||
|
->andWhere($builder->expr()->eq('t.active', "'TRUE'"))
|
||||||
->setParameter('entity', addslashes($entity));
|
->setParameter('entity', addslashes($entity));
|
||||||
|
|
||||||
return $builder
|
return $builder
|
||||||
|
@ -69,7 +69,7 @@ class AccompanyingPeriodWorkEvaluationApiController
|
|||||||
$evaluations =
|
$evaluations =
|
||||||
array_filter(
|
array_filter(
|
||||||
$this->docGeneratorTemplateRepository
|
$this->docGeneratorTemplateRepository
|
||||||
->findByEntity(AccompanyingPeriodWorkEvaluation::class),
|
->findByEntity(AccompanyingPeriodWorkEvaluation::class, 0, 500),
|
||||||
static function (DocGeneratorTemplate $t) use ($evaluation) {
|
static function (DocGeneratorTemplate $t) use ($evaluation) {
|
||||||
$ids = $t->getOptions()['evaluations'] ?? [];
|
$ids = $t->getOptions()['evaluations'] ?? [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user