added fix

This commit is contained in:
Frank Dillon 2006-05-10 17:16:45 +00:00
parent 683943c058
commit d150ac55a3

View file

@ -2280,7 +2280,7 @@ sub saveRegistration {
$self->session->http->setRedirect($self->getUrl("op=viewCart;something=".rand(44345552))); $self->session->http->setRedirect($self->getUrl("op=viewCart;something=".rand(44345552)));
} }
return 1 if $self->session->form->get('checkoutNow'); return 1 if $self->session->form->get('checkoutNow');
return $self->www_view(); return "";
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------
@ -2291,7 +2291,7 @@ sub www_resetScratchCart {
$self->session->scratch->delete('EMS_add_purchase_events'); $self->session->scratch->delete('EMS_add_purchase_events');
$self->session->scratch->delete('currentMainEvent'); $self->session->scratch->delete('currentMainEvent');
$self->session->scratch->delete('currentBadgeId'); $self->session->scratch->delete('currentBadgeId');
return $self->www_view(); return "";
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------
sub www_saveRegistrantInfo { sub www_saveRegistrantInfo {
@ -2704,7 +2704,7 @@ sub www_search {
sub view { sub view {
my $self = shift; my $self = shift;
my %var; my %var;
return $self->session->privilege->noAccess() unless $self->canView;
# If we're at the view method there is no reason we should have anything in our scratch cart # If we're at the view method there is no reason we should have anything in our scratch cart
# so let's empty it to prevent strange and awful things from happening # so let's empty it to prevent strange and awful things from happening
# unless ($self->session->scratch->get('EMS_add_purchase_badgeId')) { # unless ($self->session->scratch->get('EMS_add_purchase_badgeId')) {