Commit 897280ab4f86485dd111556295441a64e50c4f1c

Authored by Braulio Bhavamitra
1 parent 001518e4

Fix crash putting default variable value

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/acts_as_faceted.rb
... ... @@ -67,6 +67,7 @@ module ActsAsFaceted
67 67 raise 'Use map_facets_for before this method' if facet[:solr_field].nil?
68 68 facets_data = {} if facets_data.blank? # could be empty array
69 69 solr_facet = to_solr_fields_names[facet[:solr_field]]
  70 + unfiltered_facets_data ||= {}
70 71  
71 72 if facet[:queries]
72 73 container = facets_data[facets_results_containers[:queries]]
... ...