From 5a3056e2a68ac8ab8b47405468dbf86b5a0d2220 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 Dec 2019 11:44:44 -0300 Subject: [PATCH] Bug 24177: (QA follow-up) Fix warning Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- reports/cash_register_stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reports/cash_register_stats.pl b/reports/cash_register_stats.pl index d2f8c0faa8..6fbbbfbf9b 100755 --- a/reports/cash_register_stats.pl +++ b/reports/cash_register_stats.pl @@ -64,9 +64,9 @@ my @credit_types = if ($do_it) { - $fromDate = output_pref({ dt => eval { dt_from_string($input->param("from")) } || dt_from_string, + $fromDate = output_pref({ dt => eval { dt_from_string(scalar $input->param("from")) } || dt_from_string, dateformat => 'sql', dateonly => 1 }); #for sql query - $toDate = output_pref({ dt => eval { dt_from_string($input->param("to")) } || dt_from_string, + $toDate = output_pref({ dt => eval { dt_from_string(scalar $input->param("to")) } || dt_from_string, dateformat => 'sql', dateonly => 1 }); #for sql query my $whereTType = q{}; -- 2.39.5