Skip to content

Commit

Permalink
Fix bug in Cart.pm affecting prefixes on MaxQuantityField
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lavin authored and jonjensen committed May 3, 2011
1 parent 291e7f1 commit 5659b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Vend/Cart.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ sub toss_cart {
$tab = $item->{mv_ib} || $Vend::Cfg->{ProductFiles}[0]; $tab = $item->{mv_ib} || $Vend::Cfg->{ProductFiles}[0];
} }


my ($prefix) = $tab =~ s/^([=\?])//; my $prefix = '';
$prefix ||= ''; $tab =~ s/^([=?])// and $prefix = $1;


my $max = \$quantity_cache{"$tab.$col.$item->{code}"}; my $max = \$quantity_cache{"$tab.$col.$item->{code}"};
$$max ||= ::tag_data($tab, $col, $item->{code}); $$max ||= ::tag_data($tab, $col, $item->{code});
Expand Down

0 comments on commit 5659b76

Please sign in to comment.