Bugzilla – Attachment 111073 Details for
Bug 26137
Warn on malformed param on log viewer (viewlog.pl)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26137: Prevent warns form malformed params
Bug-26137-Prevent-warns-form-malformed-params.patch (text/plain), 1.65 KB, created by
Julian Maurice
on 2020-10-02 08:38:30 UTC
(
hide
)
Description:
Bug 26137: Prevent warns form malformed params
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2020-10-02 08:38:30 UTC
Size:
1.65 KB
patch
obsolete
>From 49d401691e50eeb98310060e06b4c040ba0c19cc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 4 Aug 2020 19:37:02 +0000 >Subject: [PATCH] Bug 26137: Prevent warns form malformed params > >To test: >1 - Tail plack logs >2 - Browse to Tools->Log viewer >3 - Note an error >4 - Apply patch >5 - Confirm error is gone >6 - Confirm everytihg stil works right > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > tools/viewlog.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index 9c2141eb2f..d17dc43435 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -53,7 +53,7 @@ my @modules = $input->multi_param("modules"); > my $user = $input->param("user") // ''; > my @actions = $input->multi_param("actions"); > my @interfaces = $input->multi_param("interfaces"); >-my $object = $input->param("object"); >+my $object = $input->param("object") // ''; > my $object_type = $input->param("object_type") // ''; > my $info = $input->param("info"); > my $datefrom = $input->param("from"); >@@ -90,10 +90,12 @@ if ( $src eq 'circ' ) { > $template->param( > debug => $debug, > C4::Search::enabled_staff_search_views, >- subscriptionsnumber => CountSubscriptionFromBiblionumber(scalar $input->param('object')), > object => $object, > ); > >+my $subscriptionsnumber = CountSubscriptionFromBiblionumber($object); >+$template->param( subscriptionsnumber => $subscriptionsnumber ) if $subscriptionsnumber; >+ > if ($do_it) { > my $dtf = Koha::Database->new->schema->storage->datetime_parser; > my %search_params; >-- >2.20.1
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 26137
:
107804
|
110936
|
110981
|
111073
|
111367
|
111390