From 8abf449cf73c3e39e410ed5b908ccf17346032f0 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Wed, 10 May 2006 03:54:18 +0000 Subject: [PATCH] fix --- lib/WebGUI/Asset/Wobject/EventManagementSystem.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index 84c3bb03d..434a41591 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -2180,10 +2180,10 @@ sub saveRegistration { my @addingToPurchase = split("\n",$self->session->scratch->get('EMS_add_purchase_events')); # @addingToPurchase = () if ($self->session->scratch->get('EMS_add_purchase_badgeId') && !($self->session->scratch->get('EMS_add_purchase_badgeId') eq $badgeId)); - my @badgeEvents = $self->session->db->quickArray("select distinct(e.productId) from EventManagementSystem_registrations as r, EventManagementSystem_badges as b, EventManagementSystem_products as e, products as p where p.productId = r.productId and p.productId = e.productId and r.badgeId=b.badgeId and r.badgeId=? and r.purchaseId !='' and r.purchaseId is not null",[$badgeId]); + my @badgeEvents = $self->session->db->quickArray("select distinct(e.productId) from EventManagementSystem_registrations as r, EventManagementSystem_badges as b, EventManagementSystem_products as e, EventManagementSystem_purchases as z, products as p where p.productId = r.productId and p.productId = e.productId and r.badgeId=b.badgeId and r.badgeId=? and r.purchaseId !='' and r.purchaseId=z.purchaseId and r.purchaseId is not null",[$badgeId]); foreach my $eventId (@$eventsInCart) { next if isIn($eventId,@addingToPurchase); - # next if isIn($eventId,@badgeEvents); + next if isIn($eventId,@badgeEvents); my $registrationId = $self->setCollateral("EventManagementSystem_registrations", "registrationId",{ registrationId => "new", purchaseId => $purchaseId,