lasf fixes
This commit is contained in:
parent
5897df8709
commit
b9a4b8eddf
|
|
@ -197,8 +197,8 @@ class ProductRepository extends Repository
|
|||
$qb->whereIn('product_categories.category_id', explode(',', $categoryId));
|
||||
}
|
||||
|
||||
if($params['brand']){
|
||||
$qb->leftJoin('products', 'products.id','=','product_flat.product_id')
|
||||
if(isset($params['brand'])){
|
||||
$qb->innerJoin('product_categories', 'product_categories.id','=','product_flat.product_id')
|
||||
->whereIn('products.brand_id',explode(',',$params['brand']));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue