Fix a typo in the illegal product quantity error checker in the cart.
This commit is contained in:
parent
072aee2f38
commit
cff541df1d
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue