From 901303003185fc60d8973245bd3c03df1d392d59 Mon Sep 17 00:00:00 2001 From: kalakotra Date: Tue, 27 Oct 2015 18:04:13 +0100 Subject: [PATCH] Update Item.php It get me an error when I adding item to cart (on item creating there is a ProductID but there is no Product object) --- code/order/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/order/Item.php b/code/order/Item.php index ed1c17b0..8df0dcb2 100644 --- a/code/order/Item.php +++ b/code/order/Item.php @@ -187,7 +187,7 @@ function validate() { $result = new ValidationResult(); - $product = $this->Product(); + $product = Product::get()->byId($this->ProductID); //$this->Product(); $variation = $this->Variation(); $quantity = $this->Quantity;