Bug 16864

Summary: Silence warnings in t/db_dependent/ILSDI_Services.t
Product: Koha Reporter: Mark Tompsett <mtompset>
Component: Test SuiteAssignee: Mark Tompsett <mtompset>
Status: CLOSED FIXED QA Contact: Tomás Cohen Arazi <tomascohen>
Severity: minor    
Priority: P5 - low CC: brendan, f.demians, jonathan.druart, julian.maurice, tomascohen, veron
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15809
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16864: Silence warnings in t/db_dependent/ILSDI_Services.t
Bug 16864: Silence warnings in t/db_dependent/ILSDI_Services.t
Bug 16864: Silence warnings in t/db_dependent/ILSDI_Services.t

Description Mark Tompsett 2016-07-06 18:17:28 UTC
$cgi->param() is used in an ambiguous context, so it doesn't realize it should be scalar. Clarify the context while maintaining readability by novices.
Comment 1 Mark Tompsett 2016-07-06 18:21:02 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-07-26 18:06:10 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2016-08-02 10:14:55 UTC
Created attachment 53881 [details] [review]
Bug 16864: Silence warnings in t/db_dependent/ILSDI_Services.t

prove t/db_dependent/ILSDI_Services.t
generates noisy output as a result of the ambiguous context
of two $cgi->param() calls.

By storing into scalar variables, and then using the scalar
variables, the code maintains readability and fixes the problem.

TEST PLAN
---------
1) prove t/db_dependent/ILSDI_Services.t
   -- noisy.
2) apply patch
3) prove t/db_dependent/ILSDI_Services.t
   -- not noisy
4) run koha qa test tools

Signed-off-by: Marc <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Brendan Gallagher 2016-08-04 20:06:49 UTC
Pushed to master.  Should be in the November 2016 release.  Thanks!
Comment 5 Frédéric Demians 2016-08-05 06:54:56 UTC
Pushed in 16.05. Will be in 16.05.03.
Comment 6 Julian Maurice 2016-08-17 13:44:10 UTC
Patch pushed to 3.22.x, will be in 3.22.10