Skip to content

Commit f663886

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 ef438a6 commit f663886

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ protected function _isDefaultShippingNullOrSameAsBillingAddress()
473473
/**
474474
* Declare address quote model object
475475
*
476-
* @param \Magento\Quote\Model\Quote $quote
476+
* @param \Magento\Quote\Model\Quote $quote
477477
* @return $this
478478
*/
479479
public function setQuote(\Magento\Quote\Model\Quote $quote)
@@ -693,7 +693,7 @@ public function getItemQty($itemId = 0)
693693
*/
694694
public function hasItems()
695695
{
696-
return sizeof($this->getAllItems()) > 0;
696+
return count($this->getAllItems()) > 0;
697697
}
698698

699699
/**
@@ -1227,8 +1227,8 @@ public function setBaseShippingAmount($value, $alreadyExclTax = false)
12271227
/**
12281228
* Set total amount value
12291229
*
1230-
* @param string $code
1231-
* @param float $amount
1230+
* @param string $code
1231+
* @param float $amount
12321232
* @return $this
12331233
*/
12341234
public function setTotalAmount($code, $amount)
@@ -1245,8 +1245,8 @@ public function setTotalAmount($code, $amount)
12451245
/**
12461246
* Set total amount value in base store currency
12471247
*
1248-
* @param string $code
1249-
* @param float $amount
1248+
* @param string $code
1249+
* @param float $amount
12501250
* @return $this
12511251
*/
12521252
public function setBaseTotalAmount($code, $amount)
@@ -1263,8 +1263,8 @@ public function setBaseTotalAmount($code, $amount)
12631263
/**
12641264
* Add amount total amount value
12651265
*
1266-
* @param string $code
1267-
* @param float $amount
1266+
* @param string $code
1267+
* @param float $amount
12681268
* @return $this
12691269
*/
12701270
public function addTotalAmount($code, $amount)
@@ -1278,8 +1278,8 @@ public function addTotalAmount($code, $amount)
12781278
/**
12791279
* Add amount total amount value in base store currency
12801280
*
1281-
* @param string $code
1282-
* @param float $amount
1281+
* @param string $code
1282+
* @param float $amount
12831283
* @return $this
12841284
*/
12851285
public function addBaseTotalAmount($code, $amount)

0 commit comments

Comments
 (0)