Skip to content

Commit f1fc430

Browse files
ENGCOM-3559: make sure that the removal of the custom_price is properly persisted into database #19402
- Merge Pull Request #19402 from godvsdeity/magento2:fix-custom-price - Merged commits: 1. 89a4076
2 parents 733f2fc + 89a4076 commit f1fc430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Quote/Model/Quote/Item/Updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ protected function unsetCustomPrice(Item $item)
145145
$item->addOption($infoBuyRequest);
146146
}
147147

148-
$item->unsetData('custom_price');
149-
$item->unsetData('original_custom_price');
148+
$item->setData('custom_price', null);
149+
$item->setData('original_custom_price', null);
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)