Bug 14445: Silences warn in letter.pl
authorAleisha <aleishaamohia@hotmail.com>
Wed, 24 Jun 2015 01:15:32 +0000 (01:15 +0000)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 20 Jul 2015 13:33:09 +0000 (10:33 -0300)
commitfe3a49e61133e1e66d0075f3300cd3a99e691890
treeb66c2d40a15b33ce4fa477cc49a3240e6ca7ba35
parent588f13e6999bbc368fc16e7b4f3d0dab067599de
Bug 14445: Silences warn in letter.pl

When changing Koha module to 'Circulation', there is a warn saying that $code is uninitialized. This patch sets $code to an empty string to silence the warn.

To test:
1) Go to Tools, the Notices & Slips
2) Click 'new notice' (This will trigger warns, but ignore these as they will be corrected in the next patch)
3) Change Koha module to 'Circulation'
4) Notice warn about uninitialized $code variable
5) Apply patch and reload page, change Koha module to 'Circulation'
6) Notice page still works and warns are gone

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>
tools/letter.pl