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)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 24 Jul 2012 15:34:05 +0000 (17:34 +0200)
commit9e948438ef6a123b65c0b540581958701b93ea24
treeb3ae64e9799016ac3d0513799d965b718cc59efa
parent70588431b67f09d9c5622c0df510a16ad15d4d92
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>
C4/Letters.pm