afa 7 mesiacov pred
rodič
commit
853a3da4ea
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/common/model/ProductLists.php

+ 1 - 1
application/common/model/ProductLists.php

@@ -43,7 +43,7 @@ class ProductLists extends Model
         if(empty($product_id)) return [];
         $info = self::whereIn('id', $product_id);
         if($type_id == ProductPledges::Combin) $info = $info->orderRaw('field(id,'. $product_id.')');
-        $info = $info->column('id,thum,'.$lan.'_name as name');
+        $info = $info->field('id,thum,'.$lan.'_name as name')->select();
         return $info ;
     }