lasf fixes

This commit is contained in:
merdan 2022-04-20 18:17:12 +05:00
parent 5897df8709
commit b9a4b8eddf
1 changed files with 2 additions and 2 deletions

View File

@ -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']));
}