From e30efbd0bd0bb6cfbca245ae0a160d27111a570c Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Fri, 18 Feb 2022 13:42:34 +0200 Subject: [PATCH] Bug 30129: remove the third required date that was causing 500 error This problem appeared because of this commit: Bug 14435 Add the ability to store result's report cf9031711282f4be23e4a639797d0fd178940e1f This patch fixes it by removing the third $date that wasn't removed back then. To reproduce: 1) Head over to Reports page. 2) Search for report by date. It should cause 500 error. 3) Apply the patch. 4) Repeat the search again, it should be working now. Signed-off-by: Barbara Johnson Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- C4/Reports/Guided.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index 310b3e9145..76940954ad 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -740,7 +740,7 @@ sub get_saved_reports { $date = eval { output_pref( { dt => dt_from_string( $date ), dateonly => 1, dateformat => 'iso' }); }; push @cond, "DATE(last_modified) = ? OR DATE(last_run) = ?"; - push @args, $date, $date, $date; + push @args, $date, $date; } if (my $author = $filter->{author}) { $author = "%$author%"; -- 2.39.5