Skip to content

Commit c035561

Browse files
committed
fix member pagination on OER show pages
Pagination was attempting to act upon a local variable that didn't exist; it was removed in this commit: - fbe9093 Replace it with the presenter method that Hyrax typically uses to display member presenters
1 parent 02d448e commit c035561

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/hyrax/oers/_related_items.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div class="row">
3333
<% if presenter.total_pages > 1 %>
3434
<div class="row record-padding col-md-9">
35-
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
35+
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
3636
</div><!-- /pager -->
3737
<% end %>
3838
</div>

app/views/themes/cultural_show/hyrax/oers/_related_items.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div class="row">
2222
<% if presenter.total_pages > 1 %>
2323
<div class="row record-padding col-md-9">
24-
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
24+
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
2525
</div><!-- /pager -->
2626
<% end %>
2727
</div>

0 commit comments

Comments
 (0)