]> git.koha-community.org Git - koha.git/commit
Bug 14445: Silences warn in letter.pl
authorAleisha <aleishaamohia@hotmail.com>
Wed, 24 Jun 2015 01:15:32 +0000 (01:15 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 4 Aug 2015 21:12:17 +0000 (09:12 +1200)
commitff428414633db7db9024d2468f4daafdf2a23132
tree5ca8fa3390ad559e6d8a6e3a238b4392d1e1bed6
parent7abf1d9a184dd7cc2805f05e921a883871092b33
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>
(cherry picked from commit fe3a49e61133e1e66d0075f3300cd3a99e691890)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
tools/letter.pl