Bugzilla – Attachment 38660 Details for
Bug 14075
Undefined value creates noisy warns in C4::AuthoritiesMarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14075: Undefined value creates noisy warns in C4::AuthoritiesMarc
Bug-14075-Undefined-value-creates-noisy-warns-in-C.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2015-04-29 11:37:42 UTC
(
hide
)
Description:
Bug 14075: Undefined value creates noisy warns in C4::AuthoritiesMarc
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-04-29 11:37:42 UTC
Size:
1.38 KB
patch
obsolete
>From 941af0b8c84049ef85f3e5dfc712fd54678b3b7e Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Wed, 29 Apr 2015 01:56:45 +0000 >Subject: [PATCH] Bug 14075: Undefined value creates noisy warns in > C4::AuthoritiesMarc > >This match sets $sortby (previously undefined value) as an empty string to get rid of the warns. > >To test: > >1) Go to a URL such as http://localhost:8080/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&value=a&marclist=any&and_or=and >2) Notice the warns in the error log >3) Apply patch >4) Reload URL >5) Notice page still works but no warns in error log > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >NOTE: I would have done $sortby //= ''; > But this works too. :) > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/AuthoritiesMarc.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 03b0b51..c311fb2 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -109,6 +109,7 @@ sub SearchAuthorities { > my ($tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode,$sortby,$skipmetadata) = @_; > # warn Dumper($tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode,$sortby); > my $dbh=C4::Context->dbh; >+ $sortby="" unless $sortby; > my $query; > my $qpquery = ''; > my $QParser; >-- >2.1.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 14075
:
38624
|
38626
|
38628
| 38660