mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Fix updater for old clients
* fixed problem with updater error * preserve last run remove status
This commit is contained in:
parent
006bd960e3
commit
302c6dd18c
@ -1,3 +1,6 @@
|
||||
## v3.0.3
|
||||
* Исправлена ошибка при обновлении со старой версии для некоторых клиентов
|
||||
|
||||
## v3.0.2
|
||||
* Подкатегории неактивной категории и товары в них больше не попадают в ICML
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user