diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-07 21:35:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-07 21:35:14 +0000 |
commit | 12077a4d44718ede358187c800c5eff06eae13ac (patch) | |
tree | 3318a1e6d45e872b92d30c8c1a138ff1b6a6e16b /app/helpers | |
parent | 24317f617e49fa6008e341449b3c9219166345a9 (diff) | |
download | redmine-12077a4d44718ede358187c800c5eff06eae13ac.tar.gz redmine-12077a4d44718ede358187c800c5eff06eae13ac.zip |
Fixed that a cross-project custom query is not remembered inside project (#9738).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8113 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/queries_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index 7c43be12c..419843b6d 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -85,7 +85,8 @@ module QueriesHelper else # retrieve from session @query = Query.find_by_id(session[:query][:id]) if session[:query][:id] - @query ||= Query.new(:name => "_", :project => @project, :filters => session[:query][:filters], :group_by => session[:query][:group_by], :column_names => session[:query][:column_names]) + @query ||= Query.new(:name => "_", :filters => session[:query][:filters], :group_by => session[:query][:group_by], :column_names => session[:query][:column_names]) + @query.project = @project end end |