Browse Source

Code cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@15418 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.3.0
Jean-Philippe Lang 8 years ago
parent
commit
3ff3ff4f54
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/query.rb

+ 1
- 1
app/models/query.rb View File

@@ -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…
Cancel
Save