Backport r19214 from trunk
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 21:55:14 +0000 (21:55 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Jan 2011 21:55:14 +0000 (21:55 +0000)
Booking: Robert Soulliere spotted and fixed a bug in processing reservation-
related overdue fines.  See https://bugs.launchpad.net/evergreen/+bug/705061

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_1@19217 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index eb77f24..1ff90a0 100644 (file)
@@ -1551,6 +1551,14 @@ sub xact_org {
     return $loc->[0]->{circ_lib} if @$loc;
 
     $loc = $e->json_query({
+        "select" => {bresv => ["request_lib"]},
+        from     => "bresv",
+        "where"  => {id => $xact_id},
+    });
+
+    return $loc->[0]->{request_lib} if @$loc;
+
+    $loc = $e->json_query({
         "select" => {mg => ["billing_location"]},
         from     => "mg",
         "where"  => {id => $xact_id},