]> 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)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 17 May 2015 06:44:48 +0000 (18:44 +1200)
commit2b2c5f1244b45023e772554993720652f305994a
treea62179317fdc8386eccf884bef776cf2dd5d095f
parent5353219f333f4f53e1dfefeca91bf207023e866c
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>
(cherry picked from commit bf6ded93e8035c446aecd29ce6f688d1c4fcd52b)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/AuthoritiesMarc.pm