Skip to content

Commit 25bba66

Browse files
authored
Merge pull request #5142 from magento-borg/MC-29778
[CIA] MC-29778: Cannot add configurable product to cart
2 parents ad73e52 + b6c553b commit 25bba66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Block/Product/ListProduct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function getIdentities()
360360
*/
361361
public function getAddToCartPostParams(Product $product)
362362
{
363-
$url = $this->getAddToCartUrl($product);
363+
$url = $this->getAddToCartUrl($product, ['_escape' => false]);
364364
return [
365365
'action' => $url,
366366
'data' => [

app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function testGetAddToCartPostParams()
217217
->will($this->returnValue(true));
218218
$this->cartHelperMock->expects($this->any())
219219
->method('getAddUrl')
220-
->with($this->equalTo($this->productMock), $this->equalTo([]))
220+
->with($this->equalTo($this->productMock), $this->equalTo(['_escape' => false]))
221221
->will($this->returnValue($url));
222222
$this->productMock->expects($this->once())
223223
->method('getEntityId')

0 commit comments

Comments
 (0)