[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 09:15:34 CEST 2012


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

Chris Cormack <chris at bigballofwax.co.nz> changed:

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

--- Comment #7 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 10806
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10806&action=edit
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>

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


More information about the Koha-bugs mailing list