Feature: [export][action] Filter 'active' action: which does not have an end date

This commit is contained in:
2022-11-02 14:39:36 +01:00
parent 9cf06c147f
commit 1bf7f9945c
3 changed files with 9 additions and 5 deletions

View File

@@ -23,9 +23,9 @@ class CurrentActionFilter implements FilterInterface
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
public function alterQuery(QueryBuilder $qb, $data): void
{
$qb->andWhere('acpw.startDate IS NULL');
$qb->andWhere('acpw.endDate IS NULL');
}
public function applyOn(): string
@@ -33,7 +33,7 @@ class CurrentActionFilter implements FilterInterface
return Declarations::SOCIAL_WORK_ACTION_TYPE;
}
public function buildForm(FormBuilderInterface $builder)
public function buildForm(FormBuilderInterface $builder): void
{
//no form
}