From 4b93bdb447277190932b38b02ebc3d321bad1ca3 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Wed, 6 May 2026 20:27:18 +0200 Subject: [PATCH] fix(transactions): Ignore blank date in entry params (#1688) Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com> --- app/controllers/transactions_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rb index fea921ab4..ce7e32438 100644 --- a/app/controllers/transactions_controller.rb +++ b/app/controllers/transactions_controller.rb @@ -446,6 +446,7 @@ class TransactionsController < ApplicationController nature = entry_params.delete(:nature) entry_params.delete(:amount) if entry_params[:amount].blank? + entry_params.delete(:date) if entry_params[:date].blank? if nature.present? && entry_params[:amount].present? signed_amount = nature == "inflow" ? -entry_params[:amount].to_d : entry_params[:amount].to_d