[Koha-bugs] [Bug 8434] Notice generation fails for Advanced Notices, Item Due, and Overdues when run in shell (due to error in Letters.pm)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 13 18:53:07 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8434

kyle.m.hall at gmail.com <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #10806|0                           |1
        is obsolete|                            |

--- Comment #8 from kyle.m.hall at gmail.com <kyle at bywatersolutions.com> ---
Created attachment 10831
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10831&action=edit
[SIGNED-OFF] 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 at bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list