Bug fix
This commit is contained in:
parent
3fad0b078f
commit
41e5c30ee4
1 changed files with 6 additions and 1 deletions
|
|
@ -1173,7 +1173,7 @@ sub www_addToCart {
|
||||||
$conflicts = shift;
|
$conflicts = shift;
|
||||||
$pid = shift;
|
$pid = shift;
|
||||||
$shoppingCart = WebGUI::Commerce::ShoppingCart->new($self->session);
|
$shoppingCart = WebGUI::Commerce::ShoppingCart->new($self->session);
|
||||||
|
|
||||||
# Check if conflicts were found that the user needs to fix
|
# Check if conflicts were found that the user needs to fix
|
||||||
$output = $conflicts->[0] if defined $conflicts;
|
$output = $conflicts->[0] if defined $conflicts;
|
||||||
|
|
||||||
|
|
@ -2132,6 +2132,11 @@ sub view {
|
||||||
my $joins;
|
my $joins;
|
||||||
my $selects;
|
my $selects;
|
||||||
my @joined;
|
my @joined;
|
||||||
|
|
||||||
|
# If we're at the view method there is no reason we should have anything in our scratch cart
|
||||||
|
# so let's empty it to prevent strange and awful things from happening
|
||||||
|
$self->emptyScratchCart;
|
||||||
|
|
||||||
push(@keys,$keywords) if $keywords;
|
push(@keys,$keywords) if $keywords;
|
||||||
unless ($keywords =~ /^".*"$/) {
|
unless ($keywords =~ /^".*"$/) {
|
||||||
foreach (split(" ",$keywords)) {
|
foreach (split(" ",$keywords)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue