From 74eb5f1d395b3ddd50f2b9d5e86d3a68d482c9b9 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Tue, 22 Jul 2014 15:35:57 +0400 Subject: [PATCH] +fix userCreation without crm id; v1.0.9 --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 1 + intaro.intarocrm/install/version.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 6a3aa003..c7892830 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -505,6 +505,7 @@ class ICrmOrderActions // we dont need new orders without any customers (can check only for externalId) if(!isset($order['customer']['externalId']) && !$order['customer']['externalId']) { + if(!isset($order['customer']['id'])) continue; // if no id then skip if (!$order['customer']['email']) { $login = 'user_' . (microtime(true) * 10000) . mt_rand(1, 1000); $server_name = 0 < strlen(SITE_SERVER_NAME)? diff --git a/intaro.intarocrm/install/version.php b/intaro.intarocrm/install/version.php index 78367c1b..db31fd5a 100644 --- a/intaro.intarocrm/install/version.php +++ b/intaro.intarocrm/install/version.php @@ -1,5 +1,5 @@ "1.0.8", - "VERSION_DATE" => "2014-07-14 10:49:00" + "VERSION" => "1.0.9", + "VERSION_DATE" => "2014-07-22 15:35:00" );