diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-18 08:46:06 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-18 08:46:06 +0000 |
commit | b50adc72e533a9c20aca03063a676f6af4d32b85 (patch) | |
tree | 506e7f25effefb63ae7c8436497fd85ec0c5d410 /app/views | |
parent | 3affd6ab3d29bf2e86c9d4b00733499d060af20c (diff) |
Fix paging bug for type ahead search. This wasn't caught because the spec didn't call "integrate_views", so the rendering part was mocked by RSpec instead of executed.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/public_body/_search_ahead.rhtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/public_body/_search_ahead.rhtml b/app/views/public_body/_search_ahead.rhtml index 484d28256..7ade89b8e 100644 --- a/app/views/public_body/_search_ahead.rhtml +++ b/app/views/public_body/_search_ahead.rhtml @@ -1,4 +1,4 @@ -<p> +<div> <% if !@xapian_requests.nil? %> <% if @xapian_requests.results.size > 0 %> <h3><%= _('Top search results:') %></h3> @@ -13,9 +13,9 @@ <%= render :partial => 'body_listing_single', :locals => { :public_body => result[:model] } %> <% end %> </div> - <%= will_paginate WillPaginate::Collection.new(@page, 10, @xapian_requests.matches_estimated) %> + <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @xapian_requests.matches_estimated) %> <% end %> -</p> +</div> |