shish 2 лет назад
Родитель
Сommit
8f09f90cdc
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app-ghs/controllers/RefundController.php

+ 1 - 0
app-ghs/controllers/RefundController.php

@@ -192,6 +192,7 @@ class RefundController extends BaseController
         $itemList = ProductClass::getAllByCondition(['mainId' => $this->mainId, 'classId' => ['in', $ids]], null, 'id', 'id');
         if (!empty($itemList)) {
             $productIds = array_keys($itemList);
+            $productIds = array_unique($productIds);
             $where['productId'] = ['in', $productIds];
         }