cqp 3 mesi fa
parent
commit
534228b0e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Service/ProductService.php

+ 1 - 1
app/Service/ProductService.php

@@ -1178,7 +1178,7 @@ class ProductService extends Service
     public function productGroupByListData($data, $user, $search){
         if(empty($data['data'])) return $data;
 
-        $type = $search['type'] ?? 0;
+        $type = $search['type'] ?? 1;
         $category = ProductCategory::whereIn('id',array_unique(array_column($data['data'],'product_category_id')))
             ->select('title','id')
             ->get()