LP#1713160: fix crash viewing circ history in public catalog
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 12 Sep 2017 21:45:09 +0000 (17:45 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 22 Sep 2017 18:33:25 +0000 (14:33 -0400)
commite8892c15bda194b63e3389003ebb5ac76b1d452f
tree5d20ca9ca2623f4e56e9758a88bda2e8fe6637e3
parent0fefad910e5276e11c5a710cf0d085e5dd53f998
LP#1713160: fix crash viewing circ history in public catalog

This patch fixes a crash when a patron views their circulation
history in the public catalog.

To test
-------
[1] Set up a patron record that retains circ history and make
    and returns some loans. Ensure that at least one of the
    loans is aged.
[2] Log into the public catalog as the test patron and riew the
    Check Out History page (/eg/opac/myopac/circ_history).
[3] Note that an internal server error is reported.
[4] Apply the patch, repeat step 2, and verify that the check out
    history is now displayed.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/myopac/circ_history.tt2