From c8e987f1e9ef4112227267f303168457bc44cd0a Mon Sep 17 00:00:00 2001 From: Shubham Mehrotra Date: Wed, 3 Jun 2020 12:14:24 +0530 Subject: [PATCH] check if product_id exists --- packages/Webkul/Product/src/Type/Bundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Product/src/Type/Bundle.php b/packages/Webkul/Product/src/Type/Bundle.php index dfb959304..50ba8a075 100644 --- a/packages/Webkul/Product/src/Type/Bundle.php +++ b/packages/Webkul/Product/src/Type/Bundle.php @@ -499,7 +499,7 @@ class Bundle extends AbstractType */ public function compareOptions($options1, $options2) { - if ($this->product->id != $options2['product_id']) { + if (isset($options2['product_id']) && $this->product->id != $options2['product_id']) { return false; }