more fixes

This commit is contained in:
Matthew Wilson 2006-05-13 15:08:27 +00:00
parent 176b2540ac
commit 8b7f0ae0ac

View file

@ -1357,7 +1357,7 @@ sub addCartVars {
$purchase->{badgeId} = $self->session->scratch->get("badgeId".$i);
# so we don't show the badge we're currently editing
next if ($i eq $self->session->scratch->get("currentPurchaseCounter"));
my $theseRegs = $self->session->db->buildArrayRefOfHashRefs("select r.*, p.price, q.passId, q.passType from EventManagementSystem_registrations as r, EventManagementSystem_products as q, products as p where r.purchaseId=? and p.productId=r.productId and r.badgeId=? and q.productId=r.productId",[$purchase->{purchaseId},$purchase->{badgeId}]);
my $theseRegs = $self->session->db->buildArrayRefOfHashRefs("select r.*, p.price, q.passId, q.passType from EventManagementSystem_registrations as r, EventManagementSystem_products as q, products as p where p.productId=r.productId and r.badgeId=? and q.productId=r.productId",[$purchase->{badgeId}]);
my @currentEvents;
foreach (@$theseRegs) {
my ($isChild) = $self->session->db->quickArray("select prerequisiteId from EventManagementSystem_products where productId = ?",[$_->{productId}]);