CurrentEvaluationsFilter

This commit is contained in:
Mathieu Jaumotte 2022-10-31 15:54:41 +01:00 committed by Julien Fastré
parent f714c7206c
commit 0e553594a0
2 changed files with 4 additions and 8 deletions

View File

@ -25,11 +25,7 @@ class CurrentEvaluationsFilter implements FilterInterface
public function alterQuery(QueryBuilder $qb, $data)
{
$qb
->andWhere(
$qb->expr()->in('', ':')
)
->setParameter('', $data[]);
$qb->andWhere('workeval.endDate IS NULL');
}
public function applyOn(): string
@ -39,13 +35,12 @@ class CurrentEvaluationsFilter implements FilterInterface
public function buildForm(FormBuilderInterface $builder)
{
$builder->add();
//no form needed
}
public function describeAction($data, $format = 'string'): array
{
return ['', [
]];
return ['Filtered by current evaluations'];
}
public function getTitle(): string

View File

@ -575,6 +575,7 @@ end period date: Date de fin de la période
"Filtered by start date: between %start_date% and %end_date%": "Filtré par la date de début: comprise entre %start_date% et %end_date%"
"Filtered by end date: between %start_date% and %end_date%": "Filtré par la date de fin: comprise entre %start_date% et %end_date%"
Filter by current evaluations: Filtrer les évaluations en cours
"Filtered by current evaluations": "Filtré selon les évaluations en cours"
Group by start date evaluations: Grouper les évaluations par semaine/mois/année de la date de début
Group by end date evaluations: Grouper les évaluations par semaine/mois/année de la date de fin
Group by max date evaluations: Grouper les évaluations par semaine/mois/année de la date d'échéance