From 41e5c30ee41804663d06bcb72d8cc3a5daf56953 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Sun, 16 Apr 2006 00:06:38 +0000 Subject: [PATCH] Bug fix --- lib/WebGUI/Asset/Wobject/EventManagementSystem.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index 601c1a886..1f14019de 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -1173,7 +1173,7 @@ sub www_addToCart { $conflicts = shift; $pid = shift; $shoppingCart = WebGUI::Commerce::ShoppingCart->new($self->session); - + # Check if conflicts were found that the user needs to fix $output = $conflicts->[0] if defined $conflicts; @@ -2132,6 +2132,11 @@ sub view { my $joins; my $selects; 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; unless ($keywords =~ /^".*"$/) { foreach (split(" ",$keywords)) {