mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
List query is now AND where instead of OR where
Refs #775 to support soft deletes
This commit is contained in:
parent
3c2494aa83
commit
8d93c9ffab
@ -432,7 +432,7 @@ class Lists extends WidgetBase
|
||||
* 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);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user