Skip to content

Commit

Permalink
Merge pull request #1648 from dpfaffenbauer/issues/1647
Browse files Browse the repository at this point in the history
[FrontendBundle] fix having unique form-ids for cart add
  • Loading branch information
dpfaffenbauer authored Jun 7, 2021
2 parents b693e7e + f170fd8 commit 719f71c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function addItemAction(Request $request)

$addToCart = $this->createAddToCart($this->getCart(), $cartItem);

$form = $this->get('form.factory')->createNamed('coreshop', AddToCartType::class, $addToCart);
$form = $this->get('form.factory')->createNamed('coreshop-' . $product->getId(), AddToCartType::class, $addToCart);

if ($request->isMethod('POST')) {
$redirect = $request->get('_redirect', $this->generateCoreShopUrl($this->getCart(), 'coreshop_cart_summary'));
Expand Down

0 comments on commit 719f71c

Please sign in to comment.