[OPEN-ILS-DEV] Autorenew - template issue with get_copy_bib_basics
Josh Stompro
stomproj at gsuite.larl.org
Wed Jul 1 10:12:39 EDT 2020
Hello, I'm working on starting autorenew this morning, and I ran into an
issue with AutoRenewNotify template, related to the get_copy_bib_basics
call.
The default template seems to be assigning the target_copy object to cid
and passing that.
[%- SET cid = circ.target_copy || udata.copy -%]
[%- SET copy_details = helpers.get_copy_bib_basics(cid) -%]
Other templates, seem to use the target_copy.id value.
Here is the courtesy notice example
[%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%]
The error the default template gives me is
[ERR :10260:Reactor.pm:455:] Error processing Trigger template: undef error
- Can't call method "call_number" on an undefined value at
/usr/local/share/perl/5.20.2/OpenILS/Application/Trigger/Reactor.pm line
129.
Did the default template work for others that are sending out autorenew
notices? I couldn't find a bug report.
Thanks
Josh
--
Josh Stompro - IT Director
Lake Agassiz Regional Library
Desk: 218-233-3757 Ext 139
Cell: 218-790-2110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20200701/c642c44b/attachment.html>
More information about the Open-ils-dev
mailing list