From 113c44ada857b6a82311a0c16dc0800e2126f985 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 5 May 2010 16:36:05 -0700 Subject: [PATCH] Give the cart an id for the JS to work with. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Shop/Cart.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 00ebaefd9..09becbfd4 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.9.5 + - fixed #11556: New cart doesn't work with other forms on the same page 7.9.4 - We're shipping underscore.js now for its suite of extremely handy utility diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index 395049179..6c66f78f6 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -968,7 +968,7 @@ sub www_view { my %var = ( %{$self->get}, - formHeader => WebGUI::Form::formHeader($session) + formHeader => WebGUI::Form::formHeader($session, { extras => q|id="wgCartId"|, }) . WebGUI::Form::hidden($session, {name=>"shop", value=>"cart"}) . WebGUI::Form::hidden($session, {name=>"method", value=>"update"}) . WebGUI::Form::hidden($session, {name=>"itemId", value=>""})