Skip to content

Commit 740dd05

Browse files
committed
BUG#AC-838: New Checkout Shipping Address Has Company After Changing Show Company to No - issue fixed
1 parent 79776da commit 740dd05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function __construct(
7878
/**
7979
* @inheritDoc
8080
* @SuppressWarnings(PHPMD.NPathComplexity)
81+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
8182
*/
8283
public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $address)
8384
{

app/code/Magento/Quote/Test/Unit/Model/ShippingAddressManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testAssign(bool $saveInAddressBook, bool $showCompany): void
155155
/**
156156
* @return array
157157
*/
158-
private function assignDataProvider(): array
158+
public function assignDataProvider(): array
159159
{
160160
return [
161161
[true, true],

0 commit comments

Comments
 (0)