Skip to content

Commit

Permalink
FIx zero param deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed May 29, 2024
1 parent 7f72bb7 commit 0c3d78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def validate_per_page_param

params[name] = 1000 if params[name] && params[name] > 1000

params.delete(param) if params[name].zero?
params.delete(name) if params[name].zero?
end
end

Expand Down

0 comments on commit 0c3d78f

Please sign in to comment.