cqp преди 3 месеца
родител
ревизия
534228b0e8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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()