summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-30 18:37:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-30 18:37:17 +0000
commitdf4564bbd429972f3c273852481f0fe43e1094c1 (patch)
tree7131bb83f0ef9b5b859278699682c12c5dffa5cb /lib
parent1fefa970d609fff4391f7aaa4aff62c619d2b03b (diff)
downloadredmine-df4564bbd429972f3c273852481f0fe43e1094c1.tar.gz
redmine-df4564bbd429972f3c273852481f0fe43e1094c1.zip
Show all members in user custom field filter on the cross project issue list (#24769).
git-svn-id: http://svn.redmine.org/redmine/trunk@16310 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/field_format.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index 54a42ce98..b502ec4f0 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -793,6 +793,8 @@ module Redmine
end
end
scope.sorted
+ elsif object.nil?
+ Principal.member_of(Project.visible.to_a).sorted.select {|p| p.is_a?(User)}
else
[]
end
@@ -811,12 +813,8 @@ module Redmine
end
end
- def query_filter_values(*args)
- values = []
- if User.current.logged?
- values << ["<< #{l(:label_me)} >>", "me"]
- end
- values + super
+ def query_filter_values(custom_field, query)
+ query.author_values
end
end