Skip to content

Commit b5353a0

Browse files
author
Vitalii Tychenok
committed
Fix for Integration Tests
1 parent b3b920d commit b5353a0

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Multishipping/Controller/Checkout

1 file changed

+4
-2
lines changed

app/code/Magento/Multishipping/Controller/Checkout/Plugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public function __construct(\Magento\Checkout\Model\Cart $cart)
3434
*/
3535
public function beforeExecute(\Magento\Framework\App\Action\Action $subject)
3636
{
37-
$this->cart->getQuote()->setIsMultiShipping(0);
38-
$this->cart->saveQuote();
37+
if ($this->cart->getQuote()->getIsMultiShipping()) {
38+
$this->cart->getQuote()->setIsMultiShipping(0);
39+
$this->cart->saveQuote();
40+
}
3941
}
4042
}

0 commit comments

Comments
 (0)