diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-08 12:46:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-08 12:46:15 +0000 |
commit | df0a49ff14474dd2230a823f57e95aa9d3b1cd71 (patch) | |
tree | 8cf5eff97f9ae378cccdf041135d5b0d1f364392 /app/controllers/projects_controller.rb | |
parent | 50429d0819e41ea01837fccb7a878f0d878e5f6c (diff) | |
download | redmine-df0a49ff14474dd2230a823f57e95aa9d3b1cd71.tar.gz redmine-df0a49ff14474dd2230a823f57e95aa9d3b1cd71.zip |
"me" value is now available in queries for "assigned to" and "author" filters.
When executing the query, it is replaced by the currently logged in user.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@520 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 82468c21a..e90196495 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -647,11 +647,12 @@ private def retrieve_query if params[:query_id] @query = @project.queries.find(params[:query_id]) + @query.executed_by = logged_in_user session[:query] = @query else if params[:set_filter] or !session[:query] or session[:query].project_id != @project.id # Give it a name, required to be valid - @query = Query.new(:name => "_") + @query = Query.new(:name => "_", :executed_by => logged_in_user) @query.project = @project if params[:fields] and params[:fields].is_a? Array params[:fields].each do |field| |