Skip to content

Commit

Permalink
fix(addressbook): allow search on name fields in personal addressbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Apr 29, 2022
1 parent 2f725a3 commit 700d726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoObjects/Contacts/SOGoContactGCSFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ - (EOQualifier *) qualifierForFilter: (NSString *) filter
[filters addObject: @"c_givenname"];
[filters addObject: @"c_cn"];
}
else if ([[self searchFields] containsObject: currentCriteria])
else if ([[self nameFields] containsObject: currentCriteria] ||
[[self searchFields] containsObject: currentCriteria])
[filters addObject: currentCriteria];
}

Expand Down

0 comments on commit 700d726

Please sign in to comment.