Skip to content

Commit 4de0d01

Browse files
committed
MC-38620: Merge release branch into 2.4-develop
fix tests after merge
1 parent 8d5f5c5 commit 4de0d01

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ public function execute(Observer $observer)
141141
$address->setPrevQuoteCustomerGroupId($quote->getCustomerGroupId());
142142
$quote->setCustomerGroupId($groupId);
143143
$this->customerSession->setCustomerGroupId($groupId);
144-
if ($customer->getId() !== null) {
145-
$customer->setGroupId($groupId);
146-
$customer->setEmail($customer->getEmail() ?: $quote->getCustomerEmail());
147-
$quote->setCustomer($customer);
148-
}
144+
$customer->setGroupId($groupId);
145+
$customer->setEmail($customer->getEmail() ?: $quote->getCustomerEmail());
146+
$quote->setCustomer($customer);
149147
}
150148
}
151149
}

0 commit comments

Comments
 (0)