repair step 4 on installation
This commit is contained in:
parent
cec0d8945c
commit
0c86be3fed
3 changed files with 5 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -592,6 +592,8 @@ class ConfigProvider
|
|||
* setFailedOrdersIds
|
||||
*
|
||||
* @param $ids
|
||||
*
|
||||
* @throws \Bitrix\Main\ArgumentOutOfRangeException
|
||||
*/
|
||||
public static function setFailedOrdersIds($ids): void
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue