duqinya пре 5 година
родитељ
комит
d0abe6c968
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -340,7 +340,7 @@ class CmsContentTemplateSetRepository
         $pro_array = $product->toArray();
         $res_id = implode(",", array_column($pro_array, 'product_id'));
 
-        $field_order = $request['field_order'] ?? '';
+        $field_order = intval($request['field_order']) ?? 0;
         $product_key = config('constants.CMS_PRODUCTS');
         if (isset($field_order)) {
             $product_keys = sprintf($product_key, md5($res_id . $field_order));