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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 6 May 2015 18:26:04 +0000 (15:26 -0300)
commitbf6ded93e8035c446aecd29ce6f688d1c4fcd52b
treefa46e56ec41889a79446f18238197f76ac4ef0cb
parent55a9ed6ac3e6a5236bd2dc7c6b32d35b9edb5ff8
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: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/AuthoritiesMarc.pm