Fixed EMS bug that was causing badges to show as unregistered when they were payed for.

This commit is contained in:
Roy Johnson 2006-05-24 20:46:32 +00:00
parent 771f6408af
commit e9368fc7dc

View file

@ -52,10 +52,9 @@ sub handler {
my $theseRegs = $self->session->db->buildArrayRefOfHashRefs("select * from EventManagementSystem_registrations where purchaseId=?",[$purchaseId]);
foreach (@$theseRegs) {
# clean up the duplicate registrations, if any.
$self->session->db->write("delete from EventManagementSystem_registrations where badgeId=? and productId=? and registrationId!=?",[$_->{badgeId},$_->{productId},$_->{registrationId}]);
$self->session->db->write("delete from EventManagementSystem_registrations where badgeId=? and productId=? and registrationId != ?",[$_->{badgeId},$_->{productId},$_->{registrationId}]);
}
$self->session->scratch->delete("purchaseId".$counter);
$counter++;
}
}
}