fixing bug where Visitor got profile and badge info assigned.
This commit is contained in:
parent
8aa438fa67
commit
a83a01f80b
1 changed files with 3 additions and 3 deletions
|
|
@ -2435,8 +2435,8 @@ sub www_saveRegistration {
|
|||
phone => $phoneNumber,
|
||||
email => $email
|
||||
};
|
||||
$details->{userId} = $userId if $userId;
|
||||
$details->{createdByUserId} = $self->session->var->get('userId') if $addingNew;
|
||||
$details->{userId} = $userId if ($userId && $userId ne '1');
|
||||
$details->{createdByUserId} = $self->session->var->get('userId') (if $addingNew && $userId ne '1');
|
||||
$badgeId = $self->setCollateral("EventManagementSystem_badges", "badgeId",$details,0,0);
|
||||
|
||||
my $shoppingCart = WebGUI::Commerce::ShoppingCart->new($self->session);
|
||||
|
|
@ -2459,7 +2459,7 @@ sub www_saveRegistration {
|
|||
|
||||
my ($theirUserId) = $self->session->db->quickArray("select userId from EventManagementSystem_badges where badgeId=?",[$badgeId]);
|
||||
$userId = $theirUserId unless $thisIsI;
|
||||
if ($userId) {
|
||||
if ($userId && $userId ne '1') {
|
||||
my $u = WebGUI::User->new($self->session,$userId);
|
||||
$u->profileField('firstName',$firstName);
|
||||
$u->profileField('lastName',$lastName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue