From 0c3d78fb8a9317790b5dc3a2b30ab46b1ed804fc Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Thu, 30 May 2024 06:20:30 +1000 Subject: [PATCH] FIx zero param deletion --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6b34077c..9f3ee3bc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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