From: Alexander Smirnov Date: Thu, 17 Apr 2025 14:24:50 +0000 (+0300) Subject: fix X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=393e7e928e1d32558bb4481bfd71241d06c8602d;p=erp24_rep%2Fyii-erp24%2F.git fix --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index baf04e50..42e12a8c 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -2235,6 +2235,7 @@ class DataController extends BaseController if (!empty($result['created_orders'])) { $productsNames = Products1c::getNamesByTip('products'); foreach ($result['created_orders'] as $arr) { + $marketplaceOrders = null; if (!empty($arr["id"])) { $marketplaceOrders = MarketplaceOrders::find()->where(['guid' => $arr["id"]])->one(); }