Merge pull request #4411 from rahulshukla-webkul/development
added removed condtion for multiselect serach
This commit is contained in:
commit
dfe8374f63
|
|
@ -235,14 +235,12 @@ class ProductRepository extends Repository
|
|||
if ($attribute->type != 'price') {
|
||||
|
||||
$attributeQuery->where(function ($attributeValueQuery) use ($column, $filterInputValues) {
|
||||
// foreach ($filterInputValues as $filterValue) {
|
||||
// if (! is_numeric($filterValue)) {
|
||||
// continue;
|
||||
// }
|
||||
// $attributeValueQuery->orWhereRaw("find_in_set(?, {$column})", [$filterValue]);
|
||||
// }
|
||||
|
||||
$attributeValueQuery->whereIn($column, $filterInputValues);
|
||||
foreach ($filterInputValues as $filterValue) {
|
||||
if (! is_numeric($filterValue)) {
|
||||
continue;
|
||||
}
|
||||
$attributeValueQuery->orWhereRaw("find_in_set(?, {$column})", [$filterValue]);
|
||||
}
|
||||
});
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue