Bugzilla – Attachment 130904 Details for
Bug 30129
500 error when search reports by date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30129: remove the third required date that was causing 500 error
Bug-30129-remove-the-third-required-date-that-was-.patch (text/plain), 1.34 KB, created by
ByWater Sandboxes
on 2022-02-18 22:22:44 UTC
(
hide
)
Description:
Bug 30129: remove the third required date that was causing 500 error
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2022-02-18 22:22:44 UTC
Size:
1.34 KB
patch
obsolete
>From 2ff8f285546e49c3032048e34132c217eabe703c Mon Sep 17 00:00:00 2001 >From: Petro Vashchuk <stalkernoid@gmail.com> >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 <barbara.johnson@bedfordtx.gov> >--- > 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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30129
:
130825
|
130904
|
130958
|
130959
|
131005