Skip to content

Commit

Permalink
Merge pull request #149 from Neur0toxine/master
Browse files Browse the repository at this point in the history
Исправлена ошибка с передачей данных заказа в retailCRM
  • Loading branch information
gwinn authored Apr 18, 2019
2 parents 702c18d + 66d3963 commit 4313505
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v.3.3.1
* Исправлен баг с передачей данных заказа в retailCRM при получении истории изменений от retailCRM

## v.3.3.0
* Добавена настройка записи истории изменения заказов в Opencart
* Устранен баг с вызовом события редактирования заказа при выгрузке истории изменений из retailCRM
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.3.1
2 changes: 0 additions & 2 deletions src/upload/admin/model/extension/retailcrm/history/v4_5.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,7 @@ protected function updateOrders($orders)
if (isset($this->settings[$this->moduleTitle . '_status_changes'])
&& $this->settings[$this->moduleTitle . '_status_changes']
) {
\retailcrm\Retailcrm::$history_run = true;
$this->opencartApiClient->addHistory($order['externalId'], $data['order_status_id']);
\retailcrm\Retailcrm::$history_run = false;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/upload/catalog/controller/api/retailcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public function addOrderHistory()
$response = array('error' => 'Not found data');
} else {
$this->load->model('checkout/order');
\retailcrm\Retailcrm::$history_run = true;
$this->model_checkout_order->addOrderHistory($this->request->post['order_id'], $this->request->post['order_status_id']);
\retailcrm\Retailcrm::$history_run = false;
$response = array('success' => true);
}

Expand Down

0 comments on commit 4313505

Please sign in to comment.