check if product_id exists

This commit is contained in:
Shubham Mehrotra 2020-06-03 12:14:24 +05:30
parent bac17a08fb
commit c8e987f1e9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}