shizhongqi 4 лет назад
Родитель
Сommit
327fd6fcf9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      console/controllers/CustomController.php

+ 1 - 1
console/controllers/CustomController.php

@@ -282,7 +282,7 @@ class CustomController extends Controller
             $shopId = $shopIdArr[0];
             $defaultShopId = $shopIdArr[1];
 
-            $customers = CustomClass::getAllByCondition(['ownShopId' => $defaultShopId]);
+            $customers = CustomClass::getAllByCondition(['ownShopId' => $defaultShopId], null, ['shopId']);
             foreach($customers as $customer) {
                 $exist = CustomClass::exists(['ownShopId'=> $shopId, 'shopId'=>$customer['shopId']]);
                 if (!$exist) {