Skip to content

Commit ce056bb

Browse files
author
Roman Lytvynenko
committed
MC-21876: "Same as Billing Address" checkbox is checked automatically when re-ordering an order with different billing/shipping via Admin Panel.
1 parent f663886 commit ce056bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Quote/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ protected function _populateBeforeSaveData()
425425
*/
426426
protected function _isSameAsBilling()
427427
{
428-
$quoteSameAsBilling = $this->getQuote()->getShippingAddress()->getSameAsBilling();
428+
$quoteSameAsBilling = $this->getSameAsBilling();
429429

430430
return $this->getAddressType() == \Magento\Quote\Model\Quote\Address::TYPE_SHIPPING &&
431431
($this->_isNotRegisteredCustomer() || $this->_isDefaultShippingNullOrSameAsBillingAddress()) &&

0 commit comments

Comments
 (0)