diff --git a/CHANGELOG.md b/CHANGELOG.md index c998e69..5fbf0dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v3.0.3 +* Исправлена ошибка при обновлении со старой версии для некоторых клиентов + ## v3.0.2 * Подкатегории неактивной категории и товары в них больше не попадают в ICML diff --git a/VERSION b/VERSION index b502146..75a22a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.2 +3.0.3 diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index 9877329..900c162 100644 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -116,7 +116,7 @@ class RetailCRM extends Module { $this->name = 'retailcrm'; $this->tab = 'export'; - $this->version = '3.0.2'; + $this->version = '3.0.3'; $this->author = 'DIGITAL RETAIL TECHNOLOGIES SL'; $this->displayName = $this->l('retailCRM'); $this->description = $this->l('Integration module for retailCRM'); diff --git a/retailcrm/upgrade/upgrade-3.0.1.php b/retailcrm/upgrade/upgrade-3.0.1.php index 8d902fb..9f12b03 100644 --- a/retailcrm/upgrade/upgrade-3.0.1.php +++ b/retailcrm/upgrade/upgrade-3.0.1.php @@ -62,17 +62,17 @@ function upgrade_module_3_0_1($module) // API v4 is deprecated, so API version flag is removed for now. if (Configuration::hasKey($apiVersion)) { - $result = Configuration::deleteByName($apiVersion); + Configuration::deleteByName($apiVersion); } - // Fixes consequences of old fixed bug in JobManager + // Fixes consequences of old fixed bug in JobManager. Also, this field format was changed in new version. if (Configuration::hasKey($lastRun)) { $result = $result && Configuration::deleteByName($lastRun); } // Immediate cart synchronization is not safe anymore (causes data inconsistency) if (Configuration::hasKey($syncCarts) && Configuration::get($syncCarts) == "0") { - $result = $result && Configuration::set($syncCarts, "900"); + Configuration::set($syncCarts, "900"); } return $result && Db::getInstance()->execute(