mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-22 00:11:14 +00:00
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@15418 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ada650ce7f
commit
3ff3ff4f54
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user