From 83f930d368c4ea6241b02c0c9d16b5d2c0879632 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. --- 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.31.1