Skip to content

Commit

Permalink
Replaced recurring order ID with current order ID
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 2, 2024
1 parent 3c0d226 commit 7a8f9cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/catalog/controller/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -4319,7 +4319,7 @@ public function addReport(&$route, &$args): void {
if ($recurring_info) {
$this->load->model('checkout/order');

$order_info = $this->model_checkout_order->getOrder($recurring_info['order_id']);
$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);

if ($order_info) {
if (isset($this->request->server['HTTP_X_REAL_IP'])) {
Expand All @@ -4334,7 +4334,7 @@ public function addReport(&$route, &$args): void {

$comment = $this->language->get('text_new_subscription');

$this->model_checkout_order->addHistory($recurring_info['order_id'], $order_info['order_status_id'], $comment, true);
$this->model_checkout_order->addHistory($this->session->data['order_id'], $order_info['order_status_id'], $comment, true);
}
}
}
Expand Down

0 comments on commit 7a8f9cf

Please sign in to comment.