Bug 14445: Silences warns in letter.tt
authorAleisha <aleishaamohia@hotmail.com>
Wed, 1 Jul 2015 01:36:00 +0000 (01:36 +0000)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 20 Jul 2015 13:33:09 +0000 (10:33 -0300)
commit7098a36b19c35a06a51361bd381416a1204de38d
tree97bf0bf15cd0f5a3bdec063e447def82f934f244
parentfe3a49e61133e1e66d0075f3300cd3a99e691890
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>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
tools/letter.pl