Skip to content
Browse files

Fix bug in Cart.pm affecting prefixes on MaxQuantityField

  • Loading branch information...
1 parent 291e7f1 commit 5659b76808ffbc8847881db017a54b8d905ba72e @jdigory jdigory committed with jonjensen May 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Vend/Cart.pm
View
4 lib/Vend/Cart.pm
@@ -262,8 +262,8 @@ sub toss_cart {
$tab = $item->{mv_ib} || $Vend::Cfg->{ProductFiles}[0];
}
- my ($prefix) = $tab =~ s/^([=\?])//;
- $prefix ||= '';
+ my $prefix = '';
+ $tab =~ s/^([=?])// and $prefix = $1;
my $max = \$quantity_cache{"$tab.$col.$item->{code}"};
$$max ||= ::tag_data($tab, $col, $item->{code});

0 comments on commit 5659b76

Please sign in to comment.
Something went wrong with that request. Please try again.