]> git.koha-community.org Git - koha.git/commit
Bug 14075: Undefined value creates noisy warns in C4::AuthoritiesMarc
authorAleisha <aleishaamohia@hotmail.com>
Wed, 29 Apr 2015 01:56:45 +0000 (01:56 +0000)
committerMason James <mtj@kohaaloha.com>
Fri, 29 May 2015 08:08:21 +0000 (20:08 +1200)
commit94683b9eacde26fa77711bf18319a287f837fc7a
tree3c40676457c742ed6efa96481df74a06f80c9012
parent9f7d9127973d3fe64b7df3b5668f8fb83b7628fa
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>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/AuthoritiesMarc.pm