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

This patch tests successfully for me. Thanks Robert!

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

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

index c3c7ae0..ec5c56f 100644 (file)
@@ -1623,6 +1623,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},