From 2b59ca8f0ea6da47ae83cfef5c52e616e78651a7 Mon Sep 17 00:00:00 2001 From: Nadir Absemetov Date: Wed, 12 Oct 2016 17:24:49 +0300 Subject: [PATCH] Update CartItem.php Save options value in updateFromArray function --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index cbe5e21..450c340 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -211,7 +211,7 @@ class CartItem implements Arrayable $this->name = array_get($attributes, 'name', $this->name); $this->price = array_get($attributes, 'price', $this->price); $this->priceTax = $this->price + $this->tax; - $this->options = new CartItemOptions(array_get($attributes, 'options', [])); + $this->options = new CartItemOptions(array_get($attributes, 'options', $this->options)); $this->rowId = $this->generateRowId($this->id, $this->options->all()); }