From fda1c857d230399a9aee9a2b8c6098e2bc0b1b85 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Wed, 17 Jul 2013 19:12:58 +0400 Subject: [PATCH] bug fix with not uploaded orders (bitrix -> crm). --- README.md | 2 +- intaro.intarocrm/classes/general/ICrmOrderActions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 760bb54b..c49f316a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Bitrix module ============= -Bitrix module for interaction with IntaroCRM throguh REST API. +Bitrix module for interaction with IntaroCRM through REST API. Module allows: diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index d5414a34..b7e18a4c 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -91,7 +91,7 @@ class ICrmOrderActions while ($arOrder = $dbOrder->GetNext()) { if ($arOrder['ID'] <= $lastUpOrderId) //old orders not to upload - return true; + break; if(!$lastUpOrderIdNew) $lastUpOrderIdNew = $arOrder['ID'];