@@ -456,6 +456,7 class Query < ActiveRecord::Base | |||||
456 | def available_filters |
|
456 | def available_filters | |
457 | unless @available_filters |
|
457 | unless @available_filters | |
458 | initialize_available_filters |
|
458 | initialize_available_filters | |
|
459 | @available_filters ||= {} | |||
459 | @available_filters.each do |field, options| |
|
460 | @available_filters.each do |field, options| | |
460 | options[:name] ||= l(options[:label] || "field_#{field}".gsub(/_id$/, '')) |
|
461 | options[:name] ||= l(options[:label] || "field_#{field}".gsub(/_id$/, '')) | |
461 | end |
|
462 | end |
General Comments 0
You need to be logged in to leave comments.
Login now