Opened 11 years ago
Closed 11 years ago
#5769 closed enhancement (fixed)
Configurable wildcard search types in BP_User_Query
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Core | Keywords: | has-patch commit |
| Cc: |
Description
For #3278, I need to be able to set the wildcards used around the search_terms argument in BP_User_Query.
Right now, we add % to both sides of the search term. For auto-suggestions, I need to be able to do a member search in BP_User_Query but only allowing the wildcard on the right-hand side of the search string, e.g. `hello%' instead of '%hello%'.
Attached patch adds a new search_wildcard argument to BP_User_Query, with a unit test.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I'm reasonably happy with this approach, but wanted opinions from other devs, particularly Boone, before going ahead.