1
0
mirror of synced 2024-11-21 21:06:09 +03:00

Fix updater crash

This commit is contained in:
Alex Lushpai 2020-09-29 16:46:44 +03:00 committed by GitHub
commit a0897cdefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## 2020-09-29 v.5.5.2
* Исправлена ошибка, препятствовавшая обновлению модуля
## 2020-09-28 v.5.5.1
* Исправлена ошибка переноса полей в retailCRM для заказов с интеграционными доставками

View File

@ -1,5 +1,5 @@
<?
$arModuleVersion = array(
"VERSION" => "5.5.1",
"VERSION_DATE" => "2020-09-28 13:44:00"
"VERSION" => "5.5.2",
"VERSION_DATE" => "2020-09-29 15:45:00"
);

View File

@ -2,7 +2,14 @@
function update_5_5_0()
{
if (!RetailcrmConfigProvider::shouldSendPaymentAmount()) {
RetailcrmConfigProvider::setSendPaymentAmount('Y');
if (!class_exists('COption')) {
return;
}
$mid = 'intaro.retailcrm';
$option = 'send_payment_amount';
if (COption::GetOptionString($mid, $option, 'N') !== 'Y') {
COption::SetOptionString($mid, $option, 'Y');
}
}