Skip to:
Content

Opened 5 years ago

Closed 5 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 Owned by:
Milestone: Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

When answering a user question in the forums I ran across a couple of issues that need to be addressed. http://buddypress.org/forums/topic.php?id=1569

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 5 years ago.
fix component slugs being hard coded

Download all attachments as: .zip

Change History (2)

burtadsit5 years ago

fix component slugs being hard coded

comment:1 apeatling5 years ago

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

(In [1190]) Fixes #570

Note: See TracTickets for help on using tickets.