This commit is contained in:
Matthew Wilson 2006-05-10 01:18:58 +00:00
parent 127651324b
commit 3fe335f7d0

View file

@ -260,7 +260,7 @@ sub addToScratchCart {
my @eventsInCart = split("\n",$self->session->scratch->get('EMS_scratch_cart'));
my ($isApproved) = $self->session->db->quickArray("select approved from EventManagementSystem_products where productId = ?",[$event]);
return undef unless $isApproved;
$self->session->warn("got here");
$self->session->errorHandler->warn("got here");
if (scalar(@eventsInCart) == 0) {
# the cart is empty, so check if this is a master event or not.
my ($isParent) = $self->session->db->quickArray("select productId from EventManagementSystem_products where productId = ? and (prerequisiteId is not NULL and prerequisiteId != '')",[$event]);