Skip to content

Commit

Permalink
Improve ObjectGetListProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Jako committed Nov 22, 2022
1 parent c77c83c commit fbe5a1d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public function prepareQueryBeforeCount(xPDOQuery $c)
$valuesQuery = $this->getProperty('valuesqry');
$query = (!$valuesQuery) ? $this->getProperty('query') : '';
if (!empty($query)) {
$conditions = [];
$or = '';
foreach ($this->search as $search) {
$c->where([
$or . $search . ':LIKE' => '%' . $query . '%'
]);
$conditions[$or . $search . ':LIKE'] = '%' . $query . '%';
$or = 'OR:';
}
$c->where([$conditions]);
}

return $c;
Expand Down

0 comments on commit fbe5a1d

Please sign in to comment.