Fixed EMS bug that was causing badges to show as unregistered when they were payed for.
This commit is contained in:
parent
771f6408af
commit
e9368fc7dc
1 changed files with 1 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue