Skip to content

Commit 6596ca7

Browse files
committed
MAGETWO-98245: Can't remove gift wrapping from shopping cart
1 parent 01fbfeb commit 6596ca7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/code/Magento/Checkout/Controller/Cart/UpdatePost.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
@@ -95,7 +94,7 @@ protected function _updateShoppingCart()
9594
*/
9695
public function execute()
9796
{
98-
if (!$this->getRequest()->isPost() || !$this->_formKeyValidator->validate($this->getRequest())) {
97+
if (!$this->_formKeyValidator->validate($this->getRequest())) {
9998
return $this->resultRedirectFactory->create()->setPath('*/*/');
10099
}
101100

dev/tests/integration/testsuite/Magento/Checkout/Controller/CartTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ public function testUpdatePostAction()
240240
'update_cart_action' => 'update_qty',
241241
'form_key' => $formKey->getFormKey(),
242242
];
243-
$this->getRequest()->setMethod(HttpRequest::METHOD_POST);
244243
$this->getRequest()->setPostValue($postData);
245244
/** @var $customerSession \Magento\Customer\Model\Session */
246245
$customerSession = $this->_objectManager->create(\Magento\Customer\Model\Session::class);

0 commit comments

Comments
 (0)