Skip to content

Commit

Permalink
fix member pagination on OER show pages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bkiahstroud committed Jan 11, 2025
1 parent 02d448e commit c035561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/oers/_related_items.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="row">
<% if presenter.total_pages > 1 %>
<div class="row record-padding col-md-9">
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
</div><!-- /pager -->
<% end %>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="row">
<% if presenter.total_pages > 1 %>
<div class="row record-padding col-md-9">
<%= paginate array_of_ids, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
<%= paginate presenter.list_of_item_ids_to_display, outer_window: 2, theme: 'blacklight', param_name: :page, route_set: main_app %>
</div><!-- /pager -->
<% end %>
</div>
Expand Down

0 comments on commit c035561

Please sign in to comment.