diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-01 10:56:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-01 10:56:12 +0000 |
commit | e27deb1ecee42918baf86d92e9ac31e1df75fe60 (patch) | |
tree | b3f1036714cd1936f7ac8f09d383420dc999305a /app/models/time_entry_query.rb | |
parent | bf76b3b286efcb4d25951bb6fcc8f59609200269 (diff) | |
download | redmine-e27deb1ecee42918baf86d92e9ac31e1df75fe60.tar.gz redmine-e27deb1ecee42918baf86d92e9ac31e1df75fe60.zip |
Query#add_custom_fields_filters now takes a custom fields scope.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11917 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry_query.rb')
-rw-r--r-- | app/models/time_entry_query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb index f0301ce32..dbccea03d 100644 --- a/app/models/time_entry_query.rb +++ b/app/models/time_entry_query.rb @@ -84,7 +84,7 @@ class TimeEntryQuery < Query add_available_filter "comments", :type => :text add_available_filter "hours", :type => :float - add_custom_fields_filters(TimeEntryCustomField.where(:is_filter => true).all) + add_custom_fields_filters(TimeEntryCustomField) add_associations_custom_fields_filters :project, :issue, :user end |