Opened 16 years ago
Closed 16 years ago
#1222 closed defect (bug) (fixed)
Search - Relevant Post Links Broken
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 1.0.3 | Priority: | high |
| Severity: | major | Version: | 1.0.2 |
| Component: | Back-end | Keywords: | has-patch tested |
| Cc: |
Description
Search has a bug. Some posts links broken! http://bbpress.org/forums/topic/search-relevant-post-links-broken
Attachments (3)
Change History (21)
#3
@
16 years ago
- Keywords has-patch needs-testing search added; Search removed
- Severity changed from normal to major
Error verified. Attaching patch, which can be improved upon.
#6
@
16 years ago
- Keywords tested added; needs-testing removed
I think the search.php.2.diff would work good.
#8
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
I found a new bug, consequence of this patch:
To replicate this bug: 1. Make a search. 2. Make the same search.
Result: no results shown.
This happens because search form id changed from topic-search-form to post-search-form.
#9
@
16 years ago
I can't replicate this bug on my own customized theme (Scoun).
After the first test I go around to my test-forum with many other themes - For me it seems the bug is only in themes with two different search-forms!
The second search changes the url-param:
#10
@
16 years ago
Yes, the url-param changes, and that's what breaks the search.
I've also found out that a third search completes correctly... o_0"
#11
@
16 years ago
I've experienced the bug with Kakumei too; the search form also loses its styling, since its id changes.
#12
@
16 years ago
The problem was that when we changed the relevant search's type to post, $bb_query_form->type was also changed to it and the bb_topic_search_form() function uses that to determine what name should be given to the form, which created the problem.
I have attached the patch which would fix this problem.
#15
@
16 years ago
- Severity changed from major to critical
Last patch broke something huge: now every search I make returns me every post in the forum! =P
I didn't know if to open a new ticket, because this new bug is caused by this ticket's last patch...
To replicate this bug:
Result: the topic link for the second result --under "Relevant posts"-- should be set incorrectly without any id.
The bug, I believe, comes form search.php and only occurs for topics under "Relevant posts" when they have already been displayed on "Recent posts". If you erase the $bb_query_form->BB_Query_Form in search.php for $recent = $bb_query_form->results; the topic link under "Relevant posts" works fine.
So there is some overlapping in the queries when fetching the same post both times which renders the second link without an id.