fix-updater
This commit is contained in:
parent
2652897bf6
commit
0e2f497788
2 changed files with 3 additions and 8 deletions
|
@ -1,3 +1,6 @@
|
|||
## 2024-10-31 v6.5.38
|
||||
- Исправлена выгрузка заказов через агент
|
||||
|
||||
## 2024-10-30 v6.5.37
|
||||
- Исправлена подписка модуля на событие сохранения заказа
|
||||
|
||||
|
|
|
@ -1185,15 +1185,7 @@ function update()
|
|||
{
|
||||
Loader::includeModule('sale');
|
||||
Loader::includeModule('highloadblock');
|
||||
$loyaltyEventClass = 'Intaro\RetailCrm\Component\Handlers\EventsHandlers';
|
||||
|
||||
COption::SetOptionString('intaro.retailcrm', 'api_version', 'v5');
|
||||
RegisterModuleDependences('sale', 'OnSaleOrderSaved', 'intaro.retailcrm', 'RetailCrmEvent', 'orderSave', 99);
|
||||
|
||||
if (Option::get('intaro.retailcrm', 'loyalty_program_toggle') !== 'Y') {
|
||||
UnRegisterModuleDependences('sale', 'OnSaleOrderSaved', 'intaro.retailcrm', $loyaltyEventClass, 'OnSaleOrderSavedHandler');
|
||||
UnRegisterModuleDependences('sale', 'OnSaleComponentOrderResultPrepared', 'intaro.retailcrm', $loyaltyEventClass, 'OnSaleComponentOrderResultPreparedHandler');
|
||||
}
|
||||
|
||||
$orderDischarge = Option::get('intaro.retailcrm', 'order_discharge');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue