Skip to content

Commit

Permalink
NTR: PISHPW-238: fix basket restore (#432)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Nov 22, 2024
1 parent 7e1518b commit f100f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Components/Services/BasketService.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function addAttributes($id, Detail $orderDetail)
}

// perform update
$this->db->update('s_order_basket_attributes', $update, 'id = ' . $id);
$this->db->update('s_order_basket_attributes', $update, 'basketID = ' . $id);
}

/**
Expand Down Expand Up @@ -289,7 +289,7 @@ private function getOrderBasketAttributes($id)
private function getOrderDetailsAttributes($id)
{
$orderDetailAttributesResult = $this->db->fetchAll(
'SELECT * FROM s_order_details_attributes WHERE id = ?;',
'SELECT * FROM s_order_details_attributes WHERE detailID = ?;',
[$id]
);

Expand Down

0 comments on commit f100f09

Please sign in to comment.