Browse Source

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
cf90317112

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 <barbara.johnson@bedfordtx.gov>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
22.05.x
Petro Vashchuk 2 years ago
committed by Fridolin Somers
parent
commit
e30efbd0bd
  1. 2
      C4/Reports/Guided.pm

2
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%";

Loading…
Cancel
Save