]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
typo
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 17 Feb 2025 14:43:23 +0000 (17:43 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 17 Feb 2025 14:43:23 +0000 (17:43 +0300)
erp24/api2/controllers/DataController.php

index 1e9086ffa33a19f9a9ab0905c1043eb50f300e47..61a52578080238ef567df1ffb0095de7215af26c 100644 (file)
@@ -59,9 +59,9 @@ class DataController extends BaseController
 {
 
     const OUT_DIR =
-//        __DIR__ . "/../json";
+        __DIR__ . "/../json";
         //    "/www/api2/json";
-        "/var/www/erp24/api2/json";
+//        "/var/www/erp24/api2/json";
 
 //          "/var/www/www-root/data/www/api.bazacvetov24.ru/data/json";
 
@@ -1910,7 +1910,7 @@ class DataController extends BaseController
                         if ($price1->getErrors()) {
                             LogService::apiErrorLog(json_encode(["error_id" => 27, "error" => $price1->getErrors()], JSON_UNESCAPED_UNICODE));
                         }
-                        PricesRegion::deleteAll(['product_id' => $idp, 'region_Id' => $region_id]);
+                        PricesRegion::deleteAll(['product_id' => $idp, 'region_id' => $region_id]);
                         $priceRegion = new PricesRegion;
                         $priceRegion->product_id = $idp;
                         $priceRegion->region_id = $region_id;