Skip to content

Commit

Permalink
List query is now AND where instead of OR where
Browse files Browse the repository at this point in the history
Refs octobercms#775 to support soft deletes
  • Loading branch information
daftspunk committed Mar 25, 2015
1 parent 3c2494a commit 8d93c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backend/widgets/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function prepareModel()
* Apply a supplied search term for primary columns
*/
if (count($primarySearchable) > 0) {
$query->orWhere(function ($innerQuery) use ($primarySearchable) {
$query->where(function ($innerQuery) use ($primarySearchable) {
$innerQuery->searchWhere($this->searchTerm, $primarySearchable);
});
}
Expand Down

0 comments on commit 8d93c9f

Please sign in to comment.