#3607 closed defect (bug) (fixed)
Search query with broken post statuses
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6.12 | Priority: | highest omg sweet tea |
Severity: | critical | Version: | trunk |
Component: | Component - Search | Keywords: | has-patch commit |
Cc: |
Description
This has been a bug for a long time, but I noticed it only now due to some other change. But, in the includes/search/template.php
, function bbp_has_search_results()
starting on line 23, has an issue on line 50 where it initializes $post_statuses
, it uses array_keys method, but the return from bbp_get_public_topic_statuses()
is not associative array, so the result is wrong, and the list of statuses for search cause for no results to be returned (or maybe include only 'private' status.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Fix for the statuses.