From 69ef4e24c5ce573252c6856361514fd25ee39211 Mon Sep 17 00:00:00 2001 From: Chupocabra <71826921+Chupocabra@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:45:00 +0300 Subject: [PATCH] Fixed undefined array key number in order history (#337) --- CHANGELOG.md | 3 +++ VERSION | 2 +- src/include/class-wc-retailcrm-history.php | 3 ++- src/readme.txt | 5 ++++- src/retailcrm.php | 2 +- src/uninstall.php | 2 +- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cc7368..33e014f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2024-06-27 4.7.9 +* Fixed undefined array key number in order history + ## 2024-06-26 4.7.8 * Added passing link field for abandoned baskets diff --git a/VERSION b/VERSION index b8de156..3c31ca9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.7.8 +4.7.9 diff --git a/src/include/class-wc-retailcrm-history.php b/src/include/class-wc-retailcrm-history.php index 6b4c14c..f665ed6 100644 --- a/src/include/class-wc-retailcrm-history.php +++ b/src/include/class-wc-retailcrm-history.php @@ -276,7 +276,8 @@ if (!class_exists('WC_Retailcrm_History')) : $orderEditData = []; if ( - $order['number'] != $wcOrderNumber + isset($order['number']) + && $order['number'] != $wcOrderNumber && isset($this->retailcrmSettings['update_number']) && $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES ) { diff --git a/src/readme.txt b/src/readme.txt index 9587734..3fe3638 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 7.0 Requires at least: 5.3 Tested up to: 6.5 -Stable tag: 4.7.8 +Stable tag: 4.7.9 License: GPLv1 or later License URI: http://www.gnu.org/licenses/gpl-1.0.html @@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == += 4.7.9 = +* Fixed undefined array key number in order history + = 4.7.8 = * Added passing link field for abandoned baskets diff --git a/src/retailcrm.php b/src/retailcrm.php index 5470837..cfbc301 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -5,7 +5,7 @@ * Description: Integration plugin for WooCommerce & Simla.com * Author: RetailDriver LLC * Author URI: http://retailcrm.pro/ - * Version: 4.7.8 + * Version: 4.7.9 * Tested up to: 6.5 * Requires Plugins: woocommerce * WC requires at least: 5.4 diff --git a/src/uninstall.php b/src/uninstall.php index eb3b172..9188feb 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.7.8 + * @version 4.7.9 * * @package RetailCRM */