]> source.dussan.org Git - redmine.git/commitdiff
Test failures with ruby1.8.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jul 2013 21:35:33 +0000 (21:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jul 2013 21:35:33 +0000 (21:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12019 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/queries_helper.rb

index d92c300e1ea6724dc979680c80eaa8f454b7d7d0..429dcdad2cdfc386a738e9feb67a8a732706ee18 100644 (file)
@@ -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