From 59338f5848b29a6eeaabc82e2712640e4896c464 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 9 Dec 2010 18:13:50 +0000 Subject: [PATCH] transit isn't in payload first time through with ROUTE_ITEM checkin, fallback on check.org git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@18948 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 7c50d3c02f..09ce01a73a 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2487,7 +2487,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che var template = check.payload.hold ? 'hold_transit_slip' : 'transit_slip'; var params = { 'patron' : print_data.user, - 'lib' : data.hash.aou[ check.payload.hold ? check.payload.hold.pickup_lib() : check.payload.transit.source() ], + 'lib' : data.hash.aou[ check.payload.hold ? check.payload.hold.pickup_lib() : (check.payload.transit ? check.payload.transit.dest() : check.org) ], 'staff' : data.list.au[0], 'header' : data.print_list_templates[ template ].header, 'line_item' : data.print_list_templates[ template ].line_item, -- 2.11.0