Skip to content

Commit

Permalink
[Badge] fixes search
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Feb 18, 2021
1 parent dfbe329 commit 511defe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugin/open-badge/Finder/AssertionFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function configureQueryBuilder(QueryBuilder $qb, array $searches = [], ar
switch ($filterName) {
case 'badge':
$qb->join('obj.badge', 'b');
$qb->andWhere('b.uuid = :uuid');
$qb->setParameter('uuid', $filterValue);
$qb->andWhere('b.uuid = :badge');
$qb->setParameter('badge', $filterValue);
break;
case 'workspace':
$qb->join('obj.badge', 'b');
Expand All @@ -40,8 +40,8 @@ public function configureQueryBuilder(QueryBuilder $qb, array $searches = [], ar
case 'user':
case 'recipient':
$qb->join('obj.recipient', 'r');
$qb->andWhere('r.uuid = :uuid');
$qb->setParameter('uuid', $filterValue);
$qb->andWhere('r.uuid = :user');
$qb->setParameter('user', $filterValue);
break;
default:
$this->setDefaults($qb, $filterName, $filterValue);
Expand Down

0 comments on commit 511defe

Please # to comment.