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 $transactionId = shift;
|
||||
#mark all purchaseIds as paid
|
||||
my $counter = 0;
|
||||
while (1) {
|
||||
my $counter;
|
||||
|
||||
for ($counter = 0 ; $counter < 50 ; $counter++ ) {
|
||||
my $purchaseId;
|
||||
if ($purchaseId = $self->session->scratch->get("purchaseId".$counter)) {
|
||||
$self->session->db->setRow('EventManagementSystem_purchases', 'purchaseId', {'purchaseId'=>$purchaseId, 'transactionId'=>$transactionId}, $purchaseId);
|
||||
|
|
@ -56,7 +57,6 @@ sub handler {
|
|||
$self->session->scratch->delete("purchaseId".$counter);
|
||||
$counter++;
|
||||
}
|
||||
else { last; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue