Skip to content

Commit

Permalink
Bugfix in show_embargoed_items()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Jan 18, 2024
1 parent c6e4a23 commit f183ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/institutions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def show_element_registry
#
def show_embargoed_items
@permitted_params = params.permit(RESULTS_PARAMS)
@start = [@permitted_params[:start].to_i.abs, MAX_START].min
@start = [@permitted_params[:start].to_i.abs, max_start].min
@window = window_size
@items = embargoed_items(@start, @window)
@count = @items.count
Expand Down

0 comments on commit f183ea5

Please sign in to comment.