]> 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)
committerMason James <mtj@kohaaloha.com>
Fri, 28 Aug 2015 02:55:23 +0000 (14:55 +1200)
commit8b3e00d9b9c6f007f15df6c337260db45855ca4b
tree357fad42444a6707c587432aa0be70c9b83a9f6e
parente124a8c94c25b376e654d5e0812060f6f7f78135
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>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
tools/letter.pl