Skip to content

Commit 8997b2e

Browse files
author
Prabhu Ram
committed
MC-21691: [Integration Tests] Failing - Magento.Braintree.Model.MultishippingTest.testCreateOrdersWithBraintreePaypal
- Added a check for extension attributes
1 parent d271281 commit 8997b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/SalesRule/Model/RulesApplier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ protected function getDiscountData($item, $rule)
209209
*/
210210
private function setDiscountBreakdown($discountData, $item, $rule)
211211
{
212-
if ($discountData->getAmount() > 0) {
212+
if ($discountData->getAmount() > 0 && $item->getExtensionAttributes()) {
213213
/** @var \Magento\SalesRule\Model\Rule\Action\Discount\Data $discount */
214214
$discount = $this->discountFactory->create();
215215
$discount->setBaseOriginalAmount($discountData->getBaseOriginalAmount());

0 commit comments

Comments
 (0)