Skip to:

Opened 15 years ago

Closed 15 years ago

#570 closed defect (bug) (fixed)

Search in bp is case sensitive and bp_core_search_site() could break when slug is changed

Reported by: burtadsit's profile burtadsit Owned by:
Milestone: Priority: major
Severity: Version:
Component: Keywords:


When answering a user question in the forums I ran across a couple of issues that need to be addressed.

First the function bp_core_search_site() will break when the component slug is changed from the defaults. 'groups' and 'blogs' are hard coded as the component slugs. The patch addresses that issue.

Second the bp searches for blogs, users and groups are all case sensitive. I'm no sql guru but I think the solution to that would be to upper/lower case the field values being searched and the $filter var that is used. Should work. Unfortunately I have a meeting to go to so I can't test.

Patch only addresses the search url slug issue. Sorry.

Attachments (1)

searchslug.patch (400 bytes) - added by burtadsit 15 years ago.
fix component slugs being hard coded

Download all attachments as: .zip

Change History (2)

15 years ago

fix component slugs being hard coded

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1190]) Fixes #570

Note: See TracTickets for help on using tickets.