[Koha-bugs] [Bug 8434] New: 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 03:47:03 CEST 2012


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

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8434
          Assignee: gmcharlt at gmail.com
           Summary: Notice generation fails for Advanced Notices, Item
                    Due, and Overdues when run in shell (due to error in
                    Letters.pm)
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: dcook at prosentient.com.au
          Hardware: All
            Status: NEW
           Version: master
         Component: Architecture, internals, and plumbing
           Product: Koha

Notice generation fails for Advanced Notices, Item Due, and Overdues when run
in shell.

This is due to the call to C4::Context->userenv->{'branch'} in Letters.pm (line
124) coming back as undefined. Since there is no "userenv" context in the
shell, it fails everytime.

Introduce a check for "userenv", so it doesn't try changing the branch (which
is already coming in from elsewhere) to the userenv branch. With this check,
notice generation works perfectly. 

Related to Bug 8198 and Bug 8197.

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


More information about the Koha-bugs mailing list