From b8299b7718ad4304bfcd7a7c41ebdd589f9165df Mon Sep 17 00:00:00 2001 From: Dmitry Mamontov Date: Mon, 16 Feb 2015 10:30:04 +0300 Subject: [PATCH] update chngelog --- CHANGELOG.md | 2 ++ .../classes/general/ICrmOrderActions.php | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f36e4de1..76cafb77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 2015-02-13 v.1.0.16 +* Все действия агента происходят от имени retailcrm ## 2015-02-12 v.1.0.16 * Исправлен агент * Исправлены ошибки с запоминанием пользователя diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 07d8750c..01d6e661 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -1529,15 +1529,15 @@ class RetailUser extends CUser $retailUser = new CUser; $userPassword = uniqid(); $arFields = array( - "NAME" => 'retailcrm', - "LAST_NAME" => 'retailcrm', - "EMAIL" => 'retailcrm@retailcrm.com', - "LOGIN" => 'retailcrm', - "LID" => "ru", - "ACTIVE" => "Y", - "GROUP_ID" => array(2), - "PASSWORD" => $userPassword, - "CONFIRM_PASSWORD" => $userPassword + "NAME" => 'retailcrm', + "LAST_NAME" => 'retailcrm', + "EMAIL" => 'retailcrm@retailcrm.com', + "LOGIN" => 'retailcrm', + "LID" => "ru", + "ACTIVE" => "Y", + "GROUP_ID" => array(2), + "PASSWORD" => $userPassword, + "CONFIRM_PASSWORD" => $userPassword ); $id = $retailUser->Add($arFields); if (!$id) {