shizhongqi пре 4 година
родитељ
комит
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) {