• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

always searches all forums (jira bug # JF-839)

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Symptom:
If the user attempts to refine his/her search scope to only one specific forum, the results are not reduced. You can verify this bug on http://www.jforum.net/search/filters.page by searching for the term "index". I always get 157 results, regardless of the forum I choose to search within.

Solution:
At the bottom of buildSearchArgs(), in SearchAction.java, paste this over the existing code...

if (this.request.getParameter("search_forum") != null && !"".equals(this.request.getParameter("search_forum")) ) {
args.setForumId(this.request.getIntParameter("search_forum"));
}

jira bug # JF-839

-Ben
[originally posted on jforum.net by bwfrieds]
 
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic