[Koha-bugs] [Bug 14184] Noisy warns in C4/CourseReserves.pm
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 14 03:00:37 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14184
Indranil Das Gupta <indradg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #39055|0 |1
is obsolete| |
--- Comment #2 from Indranil Das Gupta <indradg at gmail.com> ---
Created attachment 39174
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39174&action=edit
Bug 14184: Undefined $term causes noisy warns in C4/CourseReserves.pm
This patch sets $term to be an empty string.
Test plan
=========
1/ enable 'UseCourseReserves' syspref in Circulation preferences
2/ in a terminal, run a `tail -f ` on your instance's opac-error.log
3/ go to the opac, click on 'Course reserve' tab to go to
opac-course-reserves.pl
4/ notice the warning - "opac-course-reserves.pl: Use of uninitialized
value $term" appear in the `tail`ed opac-error.log
5/ apply the patch
6/ reload the page (opac-course-reserves.pl)
7/ page works but the warning in step #4 is no longer logged
8/ run qa test (i.e. koha-qa.pl -c 1 -v 2), there should be no error
Remarks: Testing result match expected test plan output. The QA tests
pass with "OK" for the commit.
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list