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

Commit d347270

Browse files
author
Stanislav Idolov
authored
ENGCOM-2329: Improved code and remove unnecessary space #16773
2 parents 328c11d + a48d041 commit d347270

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)