This commit is contained in:
2023-03-28 18:12:47 +02:00
parent 561d069a3e
commit 331443ae12
5 changed files with 13 additions and 8 deletions

View File

@@ -64,7 +64,6 @@ class SocialWorkTypeFilter implements FilterInterface
$orX = $qb->expr()->orX();
foreach ($data['goal'] as $goal) {
/** @var Goal $goal */
$andX = $qb->expr()->andX();
$andX->add($qb->expr()->eq('acpw_goal.goal', $goalId = ':goal_'.uniqid()));
@@ -73,7 +72,6 @@ class SocialWorkTypeFilter implements FilterInterface
if (count($data['result']) > 0) {
$orXResult = $qb->expr()->orX();
foreach ($data['result'] as $result) {
/** @var Result $result */
$orXResult->add($qb->expr()->isMemberOf($resultId = ':result_'.uniqid(), 'acpw_goal.results'));
$qb->setParameter($resultId, $result);