Searching with empty terms after agency filtering returns 500
Closed this issue · 1 comments
hartsick commented
To reproduce:
- Search 'elections', see results
- On lefthand side under 'agencies', search 'eac' and click the box for 'Election Assistance Commission'
- See results filter
- On same screen, empty search box and click 'Search'
- See results stay same and 500 in console with following in server logs:
ActionView::Template::Error (PG::UndefinedTable: ERROR: missing FROM-clause entry for table "pg_search_8d6e7b4996530c5e36ea93" LINE 1: ...sorns"."publication_date", "sorns"."action_type", "pg_search... ^ ): 1: <%= page_entries_info @sorns, entry_name: '' %> <%= 'for "' + params[:search] +'"' if params[:search].present? %> app/views/search/_page_count.html.erb:1 app/views/search/search.js.erb:3