Skip to content

Commit

Permalink
fix: job select values are empty in applications list filter
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Jul 29, 2021
1 parent 8c81cf6 commit c58a40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Applications/src/Paginator/JobSelectPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function search($q)
{
/* @var \Doctrine\ODM\MongoDB\Query\Builder $qb */
$qb = $this->repository->createQueryBuilder();
$qb->field('title')->equals(new Regex('/' . addslashes($q) . '/i'));
$q && $qb->field('title')->equals(new Regex('/' . addslashes($q) . '/i'));

$adapter = new DoctrineMongoAdapter($qb);
parent::__construct($adapter);
Expand Down

0 comments on commit c58a40f

Please sign in to comment.