]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#904581: when calculating hold status, be more careful about fetching transits
authorGalen Charlton <gmc@esilibrary.com>
Thu, 5 Feb 2015 16:52:36 +0000 (16:52 +0000)
committerBen Shum <bshum@biblio.org>
Mon, 23 Feb 2015 22:06:00 +0000 (17:06 -0500)
commit9a3d9d67f98907527f8c6f45b1660124d94f74b8
tree6dd6d3b5a559269991ac2c94d47a1972d99de886
parent48d3d82303d05c72110c83cdd92aa657222b2eab
LP#904581: when calculating hold status, be more careful about fetching transits

This patch fixes a problem where if a hold meets the following
criteria, an "Invalid date format: at /usr/share/perl5/Error.pm"
error can be thrown when fetching its details:

- the hold has a captured item
- the captured item has status 8 (on hold shelf)
- there is another item that is currently in transit to fill the hold
- the pickup library (or one of its ancestors) has the
  circ.hold_shelf_status_delay library setting set.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm