diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-12 20:19:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-12 20:19:45 +0000 |
commit | 309c6cec861baad8d363a9e23864707cdeaa317f (patch) | |
tree | 13d8452d1dc114f6d10914d469b9ba0bc31e8e9e /lib/redmine/field_format.rb | |
parent | 2734eaffd823986c0da99ee4162000054571f422 (diff) | |
download | redmine-309c6cec861baad8d363a9e23864707cdeaa317f.tar.gz redmine-309c6cec861baad8d363a9e23864707cdeaa317f.zip |
Don't preload custom field filter values (#24787).
git-svn-id: http://svn.redmine.org/redmine/trunk@16173 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r-- | lib/redmine/field_format.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index 4e31b1330..dd467db8c 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -552,7 +552,7 @@ module Redmine end def query_filter_options(custom_field, query) - {:type => :list_optional, :values => query_filter_values(custom_field, query)} + {:type => :list_optional, :values => lambda { query_filter_values(custom_field, query) }} end protected @@ -810,6 +810,10 @@ module Redmine custom_field.user_role.map!(&:to_s).reject!(&:blank?) end end + + def query_filter_values(*args) + [["<< #{l(:label_me)} >>", "me"]] + super + end end class VersionFormat < RecordList |