##// END OF EJS Templates
Set @available_filters as an empty hash if nil....
Jean-Philippe Lang -
r15529:c2d97fb4aa11
parent child
Show More
@@ -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