From cff541df1d90231d0e63c68ac7845f623564bb58 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 10 Aug 2009 15:56:51 +0000 Subject: [PATCH] Fix a typo in the illegal product quantity error checker in the cart. --- 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 7097f78f0..a910aafb7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.17 + - fixed #10744: Shop quantity bug in Cart - fixed #10738: Events do not revision their storage locations - fixed #10724: gotcha.txt for 7.7.17 enhanced - fixed #10316: Cannot view pending version tags diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index 38c200ae0..bfe1e4e5e 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -600,7 +600,7 @@ sub updateFromForm { eval { $item->setQuantity($form->get("quantity-".$item->getId)) }; if (WebGUI::Error->caught("WebGUI::Error::Shop::MaxOfItemInCartReached")) { my $i18n = WebGUI::International->new($self->session, "Shop"); - $error{id $self} = sprint($i18n->get("too many of this item"), $item->get("configuredTitle")); + $error{id $self} = sprintf($i18n->get("too many of this item"), $item->get("configuredTitle")); } elsif (my $e = WebGUI::Error->caught) { $error{id $self} = "An unknown error has occured: ".$e->message;