app/helpers/spotlight/pages_helper.rb in blacklight-spotlight-2.13.0 vs app/helpers/spotlight/pages_helper.rb in blacklight-spotlight-3.0.0.alpha.1

- old
+ new

@@ -28,10 +28,10 @@ render_markdown(clean_text) end def available_index_fields - fields = blacklight_config.index_fields.map { |k, _v| { key: k, label: index_field_label(nil, k) } } + fields = blacklight_config.index_fields.map { |k, _v| { key: k, label: index_field_label(blacklight_config.document_model.new, k) } } fields.unshift(key: document_show_link_field, label: t(:'spotlight.pages.form.title_placeholder')) unless index_fields.include? document_show_link_field fields end