From b22941cc3e5bc6b559a40b97c86be21fda17d51a Mon Sep 17 00:00:00 2001 From: Smiley48 <43863676+Smiley48@users.noreply.github.com> Date: Thu, 26 May 2022 14:27:06 +0300 Subject: [PATCH] Update OrderManager.php --- CHANGELOG.md | 5 +++++ VERSION | 2 +- .../system/library/retailcrm/lib/service/OrderManager.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3dfa21..29403ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v4.1.7 +* Fixed notices in ICML generation and while setting delivery type +* Fixed incorrect data check before setting payment data +* Some other minor improvements + ## v4.1.6 * Fix for typo in the history routine * Fix for incorrect protocol in the ICML product image links diff --git a/VERSION b/VERSION index 561ad33..9edf2a4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.6 +4.1.7 diff --git a/src/upload/system/library/retailcrm/lib/service/OrderManager.php b/src/upload/system/library/retailcrm/lib/service/OrderManager.php index fe80f76..52aca33 100644 --- a/src/upload/system/library/retailcrm/lib/service/OrderManager.php +++ b/src/upload/system/library/retailcrm/lib/service/OrderManager.php @@ -155,7 +155,7 @@ class OrderManager { } foreach ($order_info['payments'] as $payment_data) { - if (isset($payment_data['externalId']) && $payment_data['externalId'] == $orderId) { + if (isset($payment_data['externalId'])) { $payment = $payment_data; } }