Skip to content

Commit 8f48eab

Browse files
authored
Merge pull request #3815 from projectblacklight/search_state_fields
Provide example configuration for adding search_state_fields
2 parents 6e51615 + b5f7710 commit 8f48eab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/generators/blacklight/templates/catalog_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class <%= controller_name.classify %>Controller < ApplicationController
4646
rows: 10
4747
}
4848
49+
# If you add any inputs to the search form, you must specify them so that they are not stripped out as unpermitted.
50+
# By default this includes the fields required for basic search and advanced search.
51+
# config.search_state_fields += [:search_type]
52+
4953
# solr path which will be added to solr base url before the other solr params.
5054
#config.solr_path = 'select'
5155
#config.document_solr_path = 'get'

0 commit comments

Comments
 (0)