]> git.koha-community.org Git - koha.git/commit
Bug 8434 - Notice generation fails for Advanced Notices, Item Due, and Overdues when...
authorDavid Cook <dcook@prosentient.com.au>
Fri, 13 Jul 2012 01:50:04 +0000 (11:50 +1000)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 25 Jul 2012 09:43:26 +0000 (21:43 +1200)
commit71900d9d1088651690013a4413301b0476b5bab9
tree2e2d1a01d0d727592a7297116fd31f436bd6e43e
parentba3ed923064aa0c8cfd513bb0893108daa524775
Bug 8434 - Notice generation fails for Advanced Notices, Item Due, and Overdues when run in shell (due to error in Letters.pm)

Patch introduces a check for C4::Context->userenv in Letters.pm, so that script doesn't fail when it calls to C4::Context->userenv->{branch}, when run from shell.

Without the check, Advanced Notices, Item Due, and Overdues fail to generate.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Letters.pm