mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix privacy issue with similar person matcher
The condition to show only person from same center had no precedence with name and firstname string.
This commit is contained in:
parent
5acfbd0cf1
commit
318d93c456
@ -70,10 +70,12 @@ class SimilarPersonMatcher
|
|||||||
);
|
);
|
||||||
|
|
||||||
$dql = 'SELECT p from ChillPersonBundle:Person p WHERE'
|
$dql = 'SELECT p from ChillPersonBundle:Person p WHERE'
|
||||||
. ' UNACCENT(LOWER(p.firstName)) LIKE UNACCENT(LOWER(:firstName))'
|
. ' ('
|
||||||
. ' OR UNACCENT(LOWER(p.lastName)) LIKE UNACCENT(LOWER(:lastName))'
|
. ' UNACCENT(LOWER(p.firstName)) LIKE UNACCENT(LOWER(:firstName)) '
|
||||||
. ' OR UNACCENT(LOWER(p.firstName)) LIKE UNACCENT(LOWER(:lastName))'
|
. ' OR UNACCENT(LOWER(p.lastName)) LIKE UNACCENT(LOWER(:lastName)) '
|
||||||
. ' OR UNACCENT(LOWER(p.lastName)) LIKE UNACCENT(LOWER(:firstName))'
|
. ' OR UNACCENT(LOWER(p.firstName)) LIKE UNACCENT(LOWER(:lastName)) '
|
||||||
|
. ' OR UNACCENT(LOWER(p.lastName)) LIKE UNACCENT(LOWER(:firstName)) '
|
||||||
|
. ' ) '
|
||||||
. ' AND p.center IN (:centers)';
|
. ' AND p.center IN (:centers)';
|
||||||
|
|
||||||
$query =
|
$query =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user