mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix activity between dates filter: condition added for alias
This commit is contained in:
parent
573118e514
commit
1b831bc424
5
.changes/unreleased/Fixed-20250116-151459.yaml
Normal file
5
.changes/unreleased/Fixed-20250116-151459.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: 'Export: fix missing alias in activity between certain dates filter. Condition added for alias.'
|
||||||
|
time: 2025-01-16T15:14:59.323517319+01:00
|
||||||
|
custom:
|
||||||
|
Issue: ""
|
@ -55,7 +55,9 @@ final readonly class PersonHavingActivityBetweenDateFilter implements ExportElem
|
|||||||
.' AND '
|
.' AND '
|
||||||
.'(person_person_having_activity.id = person.id OR person MEMBER OF activity_person_having_activity.persons)');
|
.'(person_person_having_activity.id = person.id OR person MEMBER OF activity_person_having_activity.persons)');
|
||||||
|
|
||||||
|
if (\in_array('activity', $qb->getAllAliases(), true)) {
|
||||||
$sqb->andWhere('activity_person_having_activity.id = activity.id');
|
$sqb->andWhere('activity_person_having_activity.id = activity.id');
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($data['reasons']) && [] !== $data['reasons']) {
|
if (isset($data['reasons']) && [] !== $data['reasons']) {
|
||||||
// add clause activity reason
|
// add clause activity reason
|
||||||
|
Loading…
x
Reference in New Issue
Block a user