From 615d9c7c17f55d4217d1b6c971af8eb5752a8525 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Fri, 25 Jan 2019 09:52:12 +0300 Subject: [PATCH] Fixes #129 Fix catalog order controller --- .travis.yml | 2 +- .../catalog/controller/extension/module/retailcrm.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f4a3f82..c98c779 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,4 +39,4 @@ deploy: on: php: 7.1 branch: master - condition: "$DEPLOY = true" + condition: "$DEPLOY = true" \ No newline at end of file diff --git a/src/upload/catalog/controller/extension/module/retailcrm.php b/src/upload/catalog/controller/extension/module/retailcrm.php index 5f86be9..236b0ab 100644 --- a/src/upload/catalog/controller/extension/module/retailcrm.php +++ b/src/upload/catalog/controller/extension/module/retailcrm.php @@ -58,11 +58,11 @@ class ControllerExtensionModuleRetailcrm extends Controller { if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) { $this->load->model('extension/retailcrm/custom/order'); $order = $this->model_extension_retailcrm_custom_order->processOrder($data); - $this->model_extension_retailcrm_custom_order->sendToCrm($order, $data, $this->retailcrmApiClient); + $this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $data); } else { $this->load->model('extension/retailcrm/order'); $order = $this->model_extension_retailcrm_order->processOrder($data); - $this->model_extension_retailcrm_order->sendToCrm($order, $data, $this->retailcrmApiClient); + $this->model_extension_retailcrm_order->sendToCrm($order, $this->retailcrmApiClient, $data); } } @@ -110,11 +110,11 @@ class ControllerExtensionModuleRetailcrm extends Controller { if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) { $this->load->model('extension/retailcrm/custom/order'); $order = $this->model_extension_retailcrm_custom_order->processOrder($data, false); - $this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, false); + $this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $data, false); } else { $this->load->model('extension/retailcrm/order'); $order = $this->model_extension_retailcrm_order->processOrder($data, false); - $this->model_extension_retailcrm_order->sendToCrm($order, $this->retailcrmApiClient, false); + $this->model_extension_retailcrm_order->sendToCrm($order, $this->retailcrmApiClient, $data, false); } } }