From f100f094505aafd70c7e4f21329d048b6c15f678 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Fri, 22 Nov 2024 11:18:16 +0100 Subject: [PATCH] NTR: PISHPW-238: fix basket restore (#432) Co-authored-by: Vitalij Mik --- Components/Services/BasketService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/Services/BasketService.php b/Components/Services/BasketService.php index 6ff8e3f0..cf166fbc 100644 --- a/Components/Services/BasketService.php +++ b/Components/Services/BasketService.php @@ -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); } /** @@ -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] );