[Koha-bugs] [Bug 14075] Undefined value creates noisy warns in C4::AuthoritiesMarc
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 29 13:37:42 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14075
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #38628|0 |1
is obsolete| |
--- Comment #8 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 38660
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38660&action=edit
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 at hotmail.com>
NOTE: I would have done $sortby //= '';
But this works too. :)
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list