- fix: EMS: Adding badges for others

This commit is contained in:
JT Smith 2007-03-20 17:40:51 +00:00
parent 991aac998a
commit 82df712135
2 changed files with 19 additions and 18 deletions

View file

@ -4,6 +4,7 @@
- fix: SQL Report: Paginate After (Still) (William McKee / Knowmad - fix: SQL Report: Paginate After (Still) (William McKee / Knowmad
Technologies) Technologies)
- fix: Bug in thumbnailer.pl - fix: Bug in thumbnailer.pl
- fix: EMS: Adding badges for others
- fix: Events userDefined fields now work. - fix: Events userDefined fields now work.
- fix: Bug in thumbnailer.pl revisited ("guiuser") - fix: Bug in thumbnailer.pl revisited ("guiuser")

View file

@ -2695,15 +2695,15 @@ sub www_saveRegistrantInfo {
$userId = $theirUserId unless $thisIsI; $userId = $theirUserId unless $thisIsI;
if ($userId && $userId ne '1') { if ($userId && $userId ne '1') {
my $u = WebGUI::User->new($self->session,$userId); my $u = WebGUI::User->new($self->session,$userId);
$u->profileField('firstName',$firstName); $u->profileField('firstName',$firstName) if ($firstName ne "");
$u->profileField('lastName',$lastName); $u->profileField('lastName',$lastName) if ($lastName ne "");
$u->profileField('homeAddress',$address); $u->profileField('homeAddress',$address) if ($address ne "");
$u->profileField('homeCity',$city); $u->profileField('homeCity',$city) if ($city ne "");
$u->profileField('homeState',$state); $u->profileField('homeState',$state) if ($state ne "");
$u->profileField('homeZip',$zipCode); $u->profileField('homeZip',$zipCode) if ($zipCode ne "");
$u->profileField('homeCountry',$country); $u->profileField('homeCountry',$country) if ($country ne "");
$u->profileField('homePhone',$phoneNumber); $u->profileField('homePhone',$phoneNumber) if ($phoneNumber ne "");
$u->profileField('email',$email); $u->profileField('email',$email) if ($email ne "");
} }
$self->session->scratch->set('currentBadgeId',$badgeId); $self->session->scratch->set('currentBadgeId',$badgeId);
@ -3582,15 +3582,15 @@ sub www_editRegistrantSave {
$u = WebGUI::User->new($self->session,$userId); $u = WebGUI::User->new($self->session,$userId);
} }
if (ref($u) eq 'WebGUI::User') { if (ref($u) eq 'WebGUI::User') {
$u->profileField('firstName',$firstName); $u->profileField('firstName',$firstName) if ($firstName ne "");
$u->profileField('lastName',$lastName); $u->profileField('lastName',$lastName) if ($lastName ne "");
$u->profileField('homeAddress',$address); $u->profileField('homeAddress',$address) if ($address ne "");
$u->profileField('homeCity',$city); $u->profileField('homeCity',$city) if ($city ne "");
$u->profileField('homeState',$state); $u->profileField('homeState',$state) if ($state ne "");
$u->profileField('homeZip',$zipCode); $u->profileField('homeZip',$zipCode) if ($zipCode ne "");
$u->profileField('homeCountry',$country); $u->profileField('homeCountry',$country) if ($country ne "");
$u->profileField('homePhone',$phoneNumber); $u->profileField('homePhone',$phoneNumber) if ($phoneNumber ne "");
$u->profileField('email',$email); $u->profileField('email',$email) if ($email ne "");
} }
} }
return $self->www_manageRegistrants(); return $self->www_manageRegistrants();