• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!