Skip to content

Commit

Permalink
Merge pull request #25 from kids-first/improve-members-searchText-field
Browse files Browse the repository at this point in the history
:childre_crossing: Improve search capabilities when searching members
  • Loading branch information
evans-g-crsj authored Apr 19, 2023
2 parents bffdb71 + 2802d11 commit c434e4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/copy_member_to_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ def searchText = [];
if (x != null && !x.trim().isEmpty() && !searchText.contains(x.toLowerCase())) {
searchText.add(x.toLowerCase())
}
ctx['searchText'] = searchText
}
if (searchText.length > 0) {
def joined = String.join(" ", searchText);
searchText.add(joined.toLowerCase())
}
ctx['searchText'] = searchText
""",
}
},
Expand Down

0 comments on commit c434e4f

Please sign in to comment.