omg
This commit is contained in:
parent
b2b6baa049
commit
5d64ca0e5d
1 changed files with 9 additions and 10 deletions
|
|
@ -2395,7 +2395,7 @@ sub www_moveEventUp {
|
||||||
sub saveRegistration {
|
sub saveRegistration {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $eventsInCart = $self->getEventsInScratchCart;
|
my $eventsInCart = $self->getEventsInScratchCart;
|
||||||
my $purchaseId = $self->session->scratch->get('purchaseId'.$self->session->scratch->get('currentPurchaseCounter')) || $self->session->id->generate;
|
my $purchaseId = $self->session->id->generate;
|
||||||
my $badgeId = $self->session->scratch->get('currentBadgeId');
|
my $badgeId = $self->session->scratch->get('currentBadgeId');
|
||||||
|
|
||||||
my $theirUserId;
|
my $theirUserId;
|
||||||
|
|
@ -2417,16 +2417,15 @@ sub saveRegistration {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Our item plug-in needs to be able to associate these records with the result of the payment attempt
|
#Our item plug-in needs to be able to associate these records with the result of the payment attempt
|
||||||
if ($self->session->scratch->get('purchaseId'.$self->session->scratch->get('currentPurchaseCounter')) ne $purchaseId) {
|
my $counter = 0;
|
||||||
my $counter = 0;
|
while (1) {
|
||||||
while (1) {
|
unless ($self->session->scratch->get("purchaseId".$counter)) {
|
||||||
unless ($self->session->scratch->get("purchaseId".$counter)) {
|
$self->session->scratch->set("purchaseId".$counter, $purchaseId);
|
||||||
$self->session->scratch->set("purchaseId".$counter, $purchaseId);
|
$self->session->scratch->set("badgeId".$counter, $badgeId);
|
||||||
$self->session->scratch->set("badgeId".$counter, $badgeId);
|
$self->session->scratch->delete('purchaseId'.$self->session->scratch->get('currentPurchaseCounter'));
|
||||||
last;
|
last;
|
||||||
}
|
|
||||||
$counter++;
|
|
||||||
}
|
}
|
||||||
|
$counter++;
|
||||||
}
|
}
|
||||||
$self->emptyScratchCart;
|
$self->emptyScratchCart;
|
||||||
$self->session->scratch->delete('EMS_add_purchase_badgeId');
|
$self->session->scratch->delete('EMS_add_purchase_badgeId');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue