summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-13 21:35:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-13 21:35:33 +0000
commit3c9263221d3d914b3e6b5f0b8c66ebd859d75403 (patch)
treead3ab4b4bb4ce079ed67efdb14291ba7e6576b90 /app
parent13bf8dc8bfb43a9c4add53f8a170a42e66058233 (diff)
downloadredmine-3c9263221d3d914b3e6b5f0b8c66ebd859d75403.tar.gz
redmine-3c9263221d3d914b3e6b5f0b8c66ebd859d75403.zip
Test failures with ruby1.8.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12019 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/queries_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index d92c300e1..429dcdad2 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -198,6 +198,7 @@ module QueriesHelper
session[:query] = {:project_id => @query.project_id, :filters => @query.filters, :group_by => @query.group_by, :column_names => @query.column_names}
else
# retrieve from session
+ @query = nil
@query = IssueQuery.find_by_id(session[:query][:id]) if session[:query][:id]
@query ||= IssueQuery.new(:name => "_", :filters => session[:query][:filters], :group_by => session[:query][:group_by], :column_names => session[:query][:column_names])
@query.project = @project