fixes
This commit is contained in:
parent
d635470ba4
commit
63cd60b653
1 changed files with 3 additions and 3 deletions
|
|
@ -43,8 +43,9 @@ sub handler {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $transactionId = shift;
|
my $transactionId = shift;
|
||||||
#mark all purchaseIds as paid
|
#mark all purchaseIds as paid
|
||||||
my $counter = 0;
|
my $counter;
|
||||||
while (1) {
|
|
||||||
|
for ($counter = 0 ; $counter < 50 ; $counter++ ) {
|
||||||
my $purchaseId;
|
my $purchaseId;
|
||||||
if ($purchaseId = $self->session->scratch->get("purchaseId".$counter)) {
|
if ($purchaseId = $self->session->scratch->get("purchaseId".$counter)) {
|
||||||
$self->session->db->setRow('EventManagementSystem_purchases', 'purchaseId', {'purchaseId'=>$purchaseId, 'transactionId'=>$transactionId}, $purchaseId);
|
$self->session->db->setRow('EventManagementSystem_purchases', 'purchaseId', {'purchaseId'=>$purchaseId, 'transactionId'=>$transactionId}, $purchaseId);
|
||||||
|
|
@ -56,7 +57,6 @@ sub handler {
|
||||||
$self->session->scratch->delete("purchaseId".$counter);
|
$self->session->scratch->delete("purchaseId".$counter);
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
else { last; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue