Bug 14184

Summary: Noisy warns in C4/CourseReserves.pm
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: OPACAssignee: Aleisha Amohia <aleisha>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: chris, indradg, mtj, tomascohen, wizzyrea
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 14184: Undefined $term causes noisy warns in C4/CourseReserves.pm
Bug 14184: Undefined $term causes noisy warns in C4/CourseReserves.pm
[PASSED QA] Bug 14184: Undefined $term causes noisy warns in C4/CourseReserves.pm

Description Aleisha Amohia 2015-05-12 04:17:44 UTC
If $term is not set and left as undefined there are a couple noisy warns
Comment 1 Aleisha Amohia 2015-05-12 04:25:59 UTC Comment hidden (obsolete)
Comment 2 Indranil Das Gupta 2015-05-14 01:00:37 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall 2015-05-22 12:43:55 UTC
Created attachment 39405 [details] [review]
[PASSED QA] 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@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Tomás Cohen Arazi 2015-05-26 14:06:41 UTC
Patch pushed to master.

Thanks Aleisha!
Comment 5 Chris Cormack 2015-05-27 08:04:27 UTC
Pushed to 3.20.x will be in 3.20.1
Comment 6 Liz Rea 2015-06-22 22:36:07 UTC
Patch pushed to 3.18.x will be in 3.18.08
Comment 7 Mason James 2015-07-25 09:43:48 UTC
Pushed to 3.16.x, will be in 3.16.13