app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-1.4.0 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-1.4.1
- old
+ new
@@ -162,10 +162,10 @@
config.facet_fields.merge! custom_facet_fields
unless facet_fields.blank?
config.facet_fields = Hash[config.facet_fields.sort_by { |k, _v| field_weight(facet_fields, k) }]
config.facet_fields.each do |k, v|
- v.original = v.dup
+ v.original = v.dup unless v.custom_field
next if facet_fields[k].blank?
v.merge! facet_fields[k].symbolize_keys
v.enabled = v.show
v.if = :field_enabled? unless v.if == false