From dc9af7bb303f9d687a69a5254ca86e2918c2534c Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 24 Sep 2024 13:16:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php index 089af7f8..37f07d1f 100644 --- a/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php +++ b/intaro.retailcrm/classes/general/order/RetailCrmOrder_v5.php @@ -472,7 +472,7 @@ class RetailCrmOrder $crmBasket = RCrmActions::apiMethod($api, 'cartGet', __METHOD__, $externalId, $site); $orderResponse = $client->createOrder($order, $site); - if ($orderResponse instanceof OrdersCreateResponse && $orderResponse->success !== true) { + if ($orderResponse instanceof OrdersCreateResponse && !$orderResponse->success) { Logger::getInstance()->write([ 'methodApi' => 'orderCreate',