From 42c4ae0ba673f745caa29621be769510b6f9bd8d 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 --- 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.24.0