shish %!s(int64=4) %!d(string=hai) anos
pai
achega
1d5d6aea7d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      console/controllers/InitController.php

+ 1 - 1
console/controllers/InitController.php

@@ -313,7 +313,7 @@ class InitController extends Controller
             }
         }
 
-        $ghsList = GhsClass::getByCondition(['id>' => 0], null, '*', null, true);
+        $ghsList = GhsClass::getAllByCondition(['id>' => 0], null, '*', null, true);
         foreach ($ghsList as $ghs) {
             $shopId = $ghs->shopId ?? 0;
             $mainId = $map[$shopId] ?? 0;