Skip to content

Commit 8a23f81

Browse files
committed
+ (Event) Fixed a display issue that showed the nickname of registrants instead of their first name during the registration problem, which could cause confusion as the actual value recorded for the registrant was their first name. (Fixes SparkDevNetwork#6160)
1 parent 96b4161 commit 8a23f81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rock.Blocks/Event/RegistrationEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ private object GetPersonCurrentFieldValue( RockContext rockContext, Person perso
21992199
switch ( field.PersonFieldType )
22002200
{
22012201
case RegistrationPersonFieldType.FirstName:
2202-
return person.NickName.IsNullOrWhiteSpace() ? person.FirstName : person.NickName;
2202+
return person.FirstName;
22032203

22042204
case RegistrationPersonFieldType.LastName:
22052205
return person.LastName;

RockWeb/Blocks/Event/RegistrationEntry.ascx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ private void SetRegistrantState( int registrantCount )
23392339
{
23402340
registrant.FieldValues.AddOrReplace(
23412341
field.Id,
2342-
new FieldValueObject( field, field.PersonFieldType == RegistrationPersonFieldType.FirstName ? CurrentPerson.NickName : CurrentPerson.LastName ) );
2342+
new FieldValueObject( field, field.PersonFieldType == RegistrationPersonFieldType.FirstName ? CurrentPerson.FirstName : CurrentPerson.LastName ) );
23432343
}
23442344
}
23452345

0 commit comments

Comments
 (0)