Bugzilla – Attachment 115165 Details for
Bug 26669
Last Run column not updated when report is run publicly (via CoverFlow or elsewhere)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26669: Avoid a warn in update_sql
Bug-26669-Avoid-a-warn-in-updatesql.patch (text/plain), 1.05 KB, created by
Fridolin Somers
on 2021-01-14 15:50:33 UTC
(
hide
)
Description:
Bug 26669: Avoid a warn in update_sql
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2021-01-14 15:50:33 UTC
Size:
1.05 KB
patch
obsolete
>From a8c8cc24489294177633331bcb63450c201b3242 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 14 Jan 2021 16:41:07 +0100 >Subject: [PATCH] Bug 26669: Avoid a warn in update_sql > >In C4/Reports/Guided.pm update_sql() called by test suite return warn : >Use of uninitialized value $sql in substitution (s///) > >Test plan : >Run prove t/db_dependent/Reports/Guided.t and see warning disapearing >(whouchhhh) >--- > 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 8c89165e2a..b625443a7a 100644 >--- a/C4/Reports/Guided.pm >+++ b/C4/Reports/Guided.pm >@@ -641,7 +641,7 @@ sub update_sql { > my $cache_expiry = $fields->{cache_expiry}; > my $public = $fields->{public}; > >- $sql =~ s/(\s*\;\s*)$//; # removes trailing whitespace and /;/ >+ $sql =~ s/(\s*\;\s*)$// if defined $sql; # removes trailing whitespace and /;/ > my $report = Koha::Reports->find($id); > $report->last_modified(dt_from_string); > $report->savedsql($sql); >-- >2.30.0
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 26669
:
115165
|
115166
|
115414
|
131539
|
132547
|
132548
|
132549
|
132587
|
132588
|
132589
|
132590