diff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rb index 9243df84..707fa5d4 100644 --- a/app/controllers/transactions_controller.rb +++ b/app/controllers/transactions_controller.rb @@ -110,7 +110,7 @@ class TransactionsController < ApplicationController private def per_page - params[:per_page].to_i.positive? ? params[:per_page].to_i : 50 + params[:per_page].to_i.positive? ? params[:per_page].to_i : 20 end def needs_rule_notification?(transaction) @@ -154,10 +154,6 @@ class TransactionsController < ApplicationController cleaned_params.delete(:amount_operator) unless cleaned_params[:amount].present? - # Only add default start_date if params are blank AND filters weren't explicitly cleared - if cleaned_params.blank? && params[:filter_cleared].blank? - cleaned_params[:start_date] = 30.days.ago.to_date - end cleaned_params end