From 9f32b2a6d8ebbbf3e3506ec2a140a02241f8f02c Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 20 Aug 2014 14:48:43 +0400 Subject: [PATCH] replace coustmerCreate call to customerEdit --- system/library/intarocrm/apihelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/library/intarocrm/apihelper.php b/system/library/intarocrm/apihelper.php index 75938ee..27b8346 100644 --- a/system/library/intarocrm/apihelper.php +++ b/system/library/intarocrm/apihelper.php @@ -63,7 +63,7 @@ class ApiHelper )); try { - $this->intaroApi->customerCreate($customer); + $this->intaroApi->customerEdit($customer); } catch (ApiException $e) { $this->log->addError('['.$this->domain.'] RestApi::orderCreate:' . $e->getMessage()); $this->log->addError('['.$this->domain.'] RestApi::orderCreate:' . json_encode($order)); @@ -227,4 +227,4 @@ class ApiHelper $this->log = new Monolog\Logger('intarocrm'); $this->log->pushHandler(new Monolog\Handler\StreamHandler($this->dir . 'intarocrm_module.log', Monolog\Logger::INFO)); } -} \ No newline at end of file +}