Mercurial > hg > soundsoftware-site
comparison app/controllers/.svn/text-base/search_controller.rb.svn-base @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
441:cbce1fd3b1b7 | 507:0c939c159af4 |
---|---|
1 # redMine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006 Jean-Philippe Lang | 2 # Copyright (C) 2006-2011 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
22 include MessagesHelper | 22 include MessagesHelper |
23 | 23 |
24 def index | 24 def index |
25 @question = params[:q] || "" | 25 @question = params[:q] || "" |
26 @question.strip! | 26 @question.strip! |
27 @all_words = params[:all_words] || (params[:submit] ? false : true) | 27 @all_words = params[:all_words] ? params[:all_words].present? : true |
28 @titles_only = !params[:titles_only].nil? | 28 @titles_only = params[:titles_only] ? params[:titles_only].present? : false |
29 | 29 |
30 projects_to_search = | 30 projects_to_search = |
31 case params[:scope] | 31 case params[:scope] |
32 when 'all' | 32 when 'all' |
33 nil | 33 nil |