Commit 17fb109b authored by jplang's avatar jplang

Show all members in user custom field filter on the cross project issue list (#24769).

git-svn-id: https://svn.redmine.org/redmine/trunk@16310 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent bf14050a
...@@ -793,6 +793,8 @@ module Redmine ...@@ -793,6 +793,8 @@ module Redmine
end end
end end
scope.sorted scope.sorted
elsif object.nil?
Principal.member_of(Project.visible.to_a).sorted.select {|p| p.is_a?(User)}
else else
[] []
end end
...@@ -811,12 +813,8 @@ module Redmine ...@@ -811,12 +813,8 @@ module Redmine
end end
end end
def query_filter_values(*args) def query_filter_values(custom_field, query)
values = [] query.author_values
if User.current.logged?
values << ["<< #{l(:label_me)} >>", "me"]
end
values + super
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment