diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-11-10 07:58:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-11-10 07:58:57 +0000 |
commit | 9746ab7e5be2db5e2d233ee37365cf21ba4b893a (patch) | |
tree | b33ac7141ab18a8a887e052b9abca920bccdd0de /app/models/query.rb | |
parent | 4a447dda0988c52e3c552f1e8f08a9bd1c315a2b (diff) | |
download | redmine-9746ab7e5be2db5e2d233ee37365cf21ba4b893a.tar.gz redmine-9746ab7e5be2db5e2d233ee37365cf21ba4b893a.zip |
Add anonymous user to author list in issue/time query (#16904).
Patch by Yuichi HARADA and Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19065 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 5daf36e84..93c36887a 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -567,6 +567,7 @@ class Query < ActiveRecord::Base author_values = [] author_values << ["<< #{l(:label_me)} >>", "me"] if User.current.logged? author_values += users.sort_by(&:status).collect{|s| [s.name, s.id.to_s, l("status_#{User::LABEL_BY_STATUS[s.status]}")] } + author_values << [l(:label_user_anonymous), User.anonymous.id.to_s] author_values end |