Fix a typo in the illegal product quantity error checker in the cart.

This commit is contained in:
Colin Kuskie 2009-08-10 15:56:51 +00:00
parent 072aee2f38
commit cff541df1d
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;