Skip to content

Commit 774e262

Browse files
ENGCOM-1512: Add missing false-check to the ConfiguredRegularPrice price-model #15129
- Merge Pull Request #15129 from tkotosz/magento2:bug/add-missing-false-check-for-price-model - Merged commits: 1. cebc94c 2. 654b468
2 parents 5ed3aa3 + 654b468 commit 774e262

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public function setItem(ItemInterface $item)
7070
public function getValue()
7171
{
7272
$basePrice = parent::getValue();
73-
return $this->item
73+
74+
return ($this->item && $basePrice !== false)
7475
? $basePrice + $this->configuredOptions->getItemOptionsValue($basePrice, $this->item)
7576
: $basePrice;
7677
}

0 commit comments

Comments
 (0)