Skip to content

Commit

Permalink
ENGCOM-4510: [Forwardport] [Checkout] Fix clearing admin quote addres…
Browse files Browse the repository at this point in the history
…s when removing all items #21785
  • Loading branch information
sidolov authored Mar 18, 2019
2 parents a55c94f + fdc5754 commit ed47c5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/code/Magento/Checkout/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,4 @@
</argument>
</arguments>
</type>
<type name="Magento\Quote\Model\Quote">
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
</type>
</config>
3 changes: 3 additions & 0 deletions app/code/Magento/Checkout/etc/frontend/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,7 @@
</argument>
</arguments>
</type>
<type name="Magento\Quote\Model\Quote">
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
</type>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ResetQuoteAddressesTest extends \PHPUnit\Framework\TestCase
/**
* @magentoDataFixture Magento/Checkout/_files/quote_with_virtual_product_and_address.php
*
* @magentoAppArea frontend
* @return void
*/
public function testAfterRemoveItem(): void
Expand Down

0 comments on commit ed47c5d

Please sign in to comment.