1
0
Fork 0
mirror of synced 2025-04-18 16:41:02 +00:00

repair step 4 on installation

This commit is contained in:
Sergey Chazov 2021-09-14 18:04:42 +03:00 committed by Neur0toxine
parent cec0d8945c
commit 0c86be3fed
3 changed files with 5 additions and 2 deletions

View file

@ -387,7 +387,7 @@ class RetailCrmOrder
* @param bool $failed -- flag to export failed orders
* @param array|null $orderList
*
* @return boolean
* @return bool
* @throws \Bitrix\Main\ArgumentException
* @throws \Bitrix\Main\ArgumentNullException
* @throws \Bitrix\Main\ObjectPropertyException
@ -529,7 +529,7 @@ class RetailCrmOrder
if ($failed == true && $failedIds !== false && count($failedIds) > 0) {
RetailcrmConfigProvider::setFailedOrdersIds(array_diff($failedIds, $recOrders));
} elseif ($lastUpOrderId < max($recOrders) && $orderList === false) {
} elseif (count($orderList) === 0 && $lastUpOrderId < max($recOrders)) {
RetailcrmConfigProvider::setLastOrderId(max($recOrders));
}
}

View file

@ -675,6 +675,7 @@ class intaro_retailcrm extends CModule
GetMessage('MODULE_INSTALL_TITLE'), $this->INSTALL_PATH . '/step2.php'
);
}
//order upload
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])
&& (strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest')

View file

@ -592,6 +592,8 @@ class ConfigProvider
* setFailedOrdersIds
*
* @param $ids
*
* @throws \Bitrix\Main\ArgumentOutOfRangeException
*/
public static function setFailedOrdersIds($ids): void
{