Bugzilla – Attachment 107804 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.64 KB, created by
Nick Clemens (kidclamp)
on 2020-08-04 19:38:29 UTC
(
hide
)
Description:
Bug 26137: Prevent warns form malformed params
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-08-04 19:38:29 UTC
Size:
1.64 KB
patch
obsolete
>From 4e495b69ad23db7672ea4802e00407781eb35afc 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 >--- > tools/viewlog.pl | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index 2ccd472f0e..a988157163 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -53,8 +53,8 @@ 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_type = $input->param("object_type"); >+my $object = $input->param("object") // ''; >+my $object_type = $input->param("object_type") // ''; > my $info = $input->param("info"); > my $datefrom = $input->param("from"); > my $dateto = $input->param("to"); >@@ -91,10 +91,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(scalar $input->param('object')); >+$template->param( subscriptionsnumber => $subscriptionsnumber ) if $subscriptionsnumber; >+ > if ($do_it) { > my $dtf = Koha::Database->new->schema->storage->datetime_parser; > my %search_params; >-- >2.11.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 26137
:
107804
|
110936
|
110981
|
111073
|
111367
|
111390