so we can delete from cart.

This commit is contained in:
Matthew Wilson 2006-05-13 13:26:49 +00:00
parent f15864674b
commit 694bd85740

View file

@ -2072,6 +2072,11 @@ sub www_addEventsToBadge {
$self->session->scratch->set('currentMainEvent',$eventId);
$self->session->scratch->set('currentBadgeId',$bid);
return $self->www_search();
} else {
my $purchaseCounter = $self->session->form->process('purchaseCounter');
if ($purchaseCounter ne "") {
$self->session->scratch->delete('purchaseId',$purchaseCounter);
}
}
return $self->www_resetScratchCart();
}