From b52e3062ca87a3e9c38487592772dc04dfdeeef9 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Fri, 2 Aug 2013 18:44:59 +0400 Subject: [PATCH] fixes --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 9 +++++---- intaro.intarocrm/install/version.php~ | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100755 intaro.intarocrm/install/version.php~ diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index bddf6471..a45343d7 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -18,7 +18,7 @@ class ICrmOrderActions */ public static function uploadOrders($steps = false, $pSize = 50) { - COption::SetOptionString(self::$MODULE_ID, self::$CRM_ORDER_LAST_ID, 0); // -- for test + //COption::SetOptionString(self::$MODULE_ID, self::$CRM_ORDER_LAST_ID, 0); // -- for test if (!CModule::IncludeModule("iblock")) { //handle err @@ -88,7 +88,7 @@ class ICrmOrderActions // error pushing customers if ($api->getStatusCode() != 201) { //handle err - self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); + //self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); if ($api->getStatusCode() != 460) // some orders were sent return true; @@ -129,7 +129,7 @@ class ICrmOrderActions // error pushing customers if ($api->getStatusCode() != 201) { //handle err - self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); + //self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); if($api->getStatusCode() != 460) // some orders were sent return false; // in pack mode return errors @@ -158,7 +158,7 @@ class ICrmOrderActions // error pushing customers if ($api->getStatusCode() != 201) { //handle err - self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); + //self::eventLog('ICrmOrderActions::uploadOrders', 'IntaroCrm\RestApi::customerUpload', $api->getLastError()); if ($api->getStatusCode() != 460) // some orders were sent return false; // in pack mode return errors @@ -188,6 +188,7 @@ class ICrmOrderActions * w+ event in bitrix log */ private static function eventLog($auditType, $itemId, $description) { + CEventLog::Add(array( "SEVERITY" => "SECURITY", "AUDIT_TYPE_ID" => $auditType, diff --git a/intaro.intarocrm/install/version.php~ b/intaro.intarocrm/install/version.php~ new file mode 100755 index 00000000..b0b13837 --- /dev/null +++ b/intaro.intarocrm/install/version.php~ @@ -0,0 +1,5 @@ + '0.4.6', + 'VERSION_DATE' => '2013-07-25 15:35:00', +);