Bug 19839

Summary: invoice.pl warns about bad variable scope
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Grace <gracesmythh>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, m.de.rooy, nick
Version: unspecifiedKeywords: Academy
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 19839: Removed Warning
Bug 19839: Removed Warning

Description Jonathan Druart 2017-12-19 18:14:40 UTC
Variable "$template" is not available at /home/vagrant/kohaclone/acqui/invoice.pl line 204.

204         $template->param( uncertainprices => 1 );

uncertainprices is not used in the template (this code has been c/p from basket.pl). We can remove this line to remove the warning
Comment 1 Grace 2018-01-16 03:46:21 UTC
Created attachment 70544 [details] [review]
Bug 19839: Removed Warning

Test Plan
[1.] Check the patch to see that I have removed:
$template->param( uncertainprices => 1 ); from line 204 as Mr Druart has instructed to do
(to get to the patch see the comment above by Mr Druart)
Comment 2 Marcel de Rooy 2018-01-16 13:49:21 UTC
Created attachment 70552 [details] [review]
Bug 19839: Removed Warning

Test Plan
[1.] Check the patch to see that I have removed:
$template->param( uncertainprices => 1 ); from line 204 as Mr Druart has instructed to do
(to get to the patch see the comment above by Mr Druart)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 3 Jonathan Druart 2018-01-19 18:56:26 UTC
Pushed to master for 18.05, thanks to everybody involved!
Comment 4 Nick Clemens 2018-01-23 04:14:46 UTC
Awesome work all!

Pushed to Stable for 17.11.02
Comment 5 Fridolin Somers 2018-02-02 08:35:34 UTC
Pushed to 17.05.x for v17.05.09

Less warn in logs saves trees ;)