mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
[person search] fix bug when using birhtdateafter and birthdate before on advanced search
This commit is contained in:
@@ -180,14 +180,14 @@ final class PersonACLAwareRepository implements PersonACLAwareRepositoryInterfac
|
||||
|
||||
if (null !== $birthdateBefore) {
|
||||
$query->andWhereClause(
|
||||
'p.birthdate < ?::date',
|
||||
'person.birthdate <= ?::date',
|
||||
[$birthdateBefore->format('Y-m-d')]
|
||||
);
|
||||
}
|
||||
|
||||
if (null !== $birthdateAfter) {
|
||||
$query->andWhereClause(
|
||||
'p.birthdate > ?::date',
|
||||
'person.birthdate >= ?::date',
|
||||
[$birthdateAfter->format('Y-m-d')]
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user