Bug 14445: Silences warns in letter.tt
authorAleisha <aleishaamohia@hotmail.com>
Wed, 1 Jul 2015 01:36:00 +0000 (01:36 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 4 Aug 2015 21:12:34 +0000 (09:12 +1200)
commitb0cf008cf2cdc18e5622b21efa89a29d02ba4a28
treee49b82fd1b7dea9584915fce59610f7910475983
parentff428414633db7db9024d2468f4daafdf2a23132
Bug 14445: Silences warns in letter.tt

When creating a new notice, warn is triggered "Argument "" isn't numeric in numeric gt (>) at line 400". Same warn is triggered when changing Koha module option to any other module.

To test:
1) Go to Tools, then Notices & Slips
2) Click 'new notice'. Notice warn in intranet-error.log
3) Change Koha module to another module. Notice warn is triggered for every change
4) Apply patch and reload page
5) Change Koha module to another module. Notice there are no longer warns
6) Go back to Notices & Slips and click 'new notice' again. Notice there are no warns

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 7098a36b19c35a06a51361bd381416a1204de38d)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
tools/letter.pl