Skip to content

Commit cebc94c

Browse files
author
tkotosz
committed
Add missing false-check to the ConfiguredRegularPrice price-model
1 parent 5ed3aa3 commit cebc94c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public function setItem(ItemInterface $item)
7070
public function getValue()
7171
{
7272
$basePrice = parent::getValue();
73+
74+
if ($basePrice === false) {
75+
return $basePrice;
76+
}
77+
7378
return $this->item
7479
? $basePrice + $this->configuredOptions->getItemOptionsValue($basePrice, $this->item)
7580
: $basePrice;

0 commit comments

Comments
 (0)