From a84a678879f99576db7a89dce4baf103e960b15c Mon Sep 17 00:00:00 2001 From: Pererinha Date: Fri, 6 Feb 2015 15:13:07 -0200 Subject: [PATCH] can't enter a gift card and actual notes at same time #4589 --- include/library/Crunchbutton/Order.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/library/Crunchbutton/Order.php b/include/library/Crunchbutton/Order.php index 2846c1720..4860c5d6b 100644 --- a/include/library/Crunchbutton/Order.php +++ b/include/library/Crunchbutton/Order.php @@ -587,11 +587,13 @@ class Crunchbutton_Order extends Crunchbutton_Order_Trackchange { $giftCardAdded = true; } } - $this->notes = $giftcards[ 'notes' ]; + $_order = Order::o( $this->id_order ); + $_order->notes = $giftcards[ 'notes' ]; + $_order->save(); + $this->notes = $_order->notes; } } - Log::debug([ 'issue' => '#1551', 'method' => 'process', '$this->final_price' => $this->final_price, 'giftcardValue'=> $this->giftcardValue, '$this->notes' => $this->notes ]); $this->debitFromUserCredit( $user->id_user ); if ( $params['make_default'] == 'true' ) {