diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-16 07:28:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-16 07:28:12 +0000 |
commit | 3ff3ff4f54beb5bd73e34ce3b8ae27e4271f1f9d (patch) | |
tree | f5905c97c0e32d0f4503b98dc45c7a6cf3c1577e /app/models/query.rb | |
parent | ada650ce7f4ba7e688b5f4932288d71a093b2661 (diff) | |
download | redmine-3ff3ff4f54beb5bd73e34ce3b8ae27e4271f1f9d.tar.gz redmine-3ff3ff4f54beb5bd73e34ce3b8ae27e4271f1f9d.zip |
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@15418 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index cc84b01ed..bb1807f6e 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -422,7 +422,7 @@ class Query < ActiveRecord::Base def label_for(field) label = available_filters[field][:name] if available_filters.has_key?(field) - label ||= l("field_#{field.to_s.gsub(/_id$/, '')}", :default => field) + label ||= queried_class.human_attribute_name(field, :default => field) end def self.add_available_column(column) |