We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c09aac commit b55cd92Copy full SHA for b55cd92
app/code/Magento/Quote/Model/ResourceModel/Quote/Address/Rate/Collection.php
@@ -131,9 +131,10 @@ public function save()
131
$itemsToDelete = [];
132
$itemsToSave = [];
133
/** @var Rate $item */
134
- foreach ($this->getItems() as $item) {
+ foreach ($this->getItems() as $key => $item) {
135
if ($item->isDeleted()) {
136
$itemsToDelete[] = $item;
137
+ $this->removeItemByKey($key);
138
} else {
139
$itemsToSave[] = $item;
140
}
0 commit comments