Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

max_per_page must be set higher than number of collections #346

Open
corylown opened this issue Apr 8, 2016 · 0 comments
Open

max_per_page must be set higher than number of collections #346

corylown opened this issue Apr 8, 2016 · 0 comments
Labels

Comments

@corylown
Copy link
Contributor

corylown commented Apr 8, 2016

The collection_facet_sort method breaks if the max_per_page is set below the number of collections. This causes a fatal error. For now I've set max_per_page to 999.

13:17:01 INFO: Completed 500 Internal Server Error in 526ms 
13:17:01 FATAL: 
ActionView::Template::Error (undefined method `downcase' for nil:NilClass):
    1: <ul class="facet-values list-unstyled">
    2:   <% paginator = facet_paginator(facet_field, display_facet) %>
    3:   <%= render_facet_limit_list paginator, solr_field %>
    4: 
    5:   <% unless paginator.last_page? || params[:action] == "facet" %>
    6:     <li class="more_facets_link"><%= link_to t('blacklight.search.facets.more'), 
  app/helpers/application_helper.rb:34:in `block in collection_facet_sort'
  app/helpers/application_helper.rb:34:in `sort'
  app/helpers/application_helper.rb:34:in `collection_facet_sort'
  app/helpers/application_helper.rb:11:in `render_facet_limit_list'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant