Skip to content

Commit 59078e2

Browse files
author
Patrick McLain
committed
Remove assumption that item qty will be int
Casting the `item_qty` param as an `int` prevented qty increments from being allowed when updating the qty via the minicart.
1 parent a29b455 commit 59078e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Controller/Sidebar/UpdateItemQty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
public function execute()
5656
{
5757
$itemId = (int)$this->getRequest()->getParam('item_id');
58-
$itemQty = (int)$this->getRequest()->getParam('item_qty');
58+
$itemQty = $this->getRequest()->getParam('item_qty') * 1;
5959

6060
try {
6161
$this->sidebar->checkQuoteItem($itemId);

0 commit comments

Comments
 (0)