Skip to content

Commit

Permalink
- Fix FindPerson not performing case insensitive matching on first/ni…
Browse files Browse the repository at this point in the history
…ck name (Fixes #3332)
  • Loading branch information
arranf committed Oct 19, 2018
1 parent 46e0cd2 commit 34252ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rock/Model/PersonService.Partial.cs
Expand Up @@ -485,7 +485,7 @@ private class PersonMatchResult
public PersonMatchResult( PersonMatchQuery query, PersonSummary person )
{
PersonId = person.Id;
FirstNameMatched = ( person.FirstName != null && person.FirstName != String.Empty && person.FirstName == query.FirstName ) || ( person.NickName != null && person.NickName != String.Empty && person.NickName == query.FirstName );
FirstNameMatched = ( person.FirstName != null && person.FirstName != String.Empty && person.FirstName.Equals(query.FirstName, StringComparison.CurrentCultureIgnoreCase) ) || ( person.NickName != null && person.NickName != String.Empty && person.NickName.Equals(query.FirstName, StringComparison.CurrentCultureIgnoreCase) );
SuffixMatched = query.SuffixValueId.HasValue && person.SuffixValueId != null && query.SuffixValueId == person.SuffixValueId;
GenderMatched = query.Gender.HasValue & query.Gender == person.Gender;

Expand Down

0 comments on commit 34252ee

Please sign in to comment.