Skip to content

Commit

Permalink
There's no sense in passing fl to a count query
Browse files Browse the repository at this point in the history
Fixes #2981 because when fl has a slash (e.g. 'admin_set/default'), Solr
is unable to parse the bad request
  • Loading branch information
jcoyne committed Dec 20, 2016
1 parent 8c14c78 commit f0ff0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/sufia/admin_set_presenter.rb
@@ -1,7 +1,7 @@
module Sufia
class AdminSetPresenter < CollectionPresenter
def total_items
ActiveFedora::SolrService.count("{!field f=isPartOf_ssim}#{id}", fl: id)
ActiveFedora::SolrService.count("{!field f=isPartOf_ssim}#{id}")
end
end
end

0 comments on commit f0ff0f1

Please sign in to comment.