Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit b4c9055

Browse files
ENGCOM-2353: Add missing false-check to the ConfiguredRegularPrice price-model #16820
- Merge Pull Request magento/magento2#16820 from ronak2ram/magento2:ronak2ram-patch-2 - Merged commits: 1. 7791be8
2 parents ce5eacd + 7791be8 commit b4c9055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Pricing/Price/ConfiguredRegularPrice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function setItem(ItemInterface $item) : ConfiguredRegularPrice
6363

6464
return $this;
6565
}
66-
66+
6767
/**
6868
* Price value of product with configured options.
6969
*
@@ -73,7 +73,7 @@ public function getValue()
7373
{
7474
$basePrice = parent::getValue();
7575

76-
return $this->item
76+
return $this->item && $basePrice !== false
7777
? $basePrice + $this->configuredOptions->getItemOptionsValue($basePrice, $this->item)
7878
: $basePrice;
7979
}

0 commit comments

Comments
 (0)