[open-ils-commits] r18949 - branches/rel_1_6_1/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 9 13:14:14 EST 2010
Author: phasefx
Date: 2010-12-09 13:14:10 -0500 (Thu, 09 Dec 2010)
New Revision: 18949
Modified:
branches/rel_1_6_1/Open-ILS/xul/staff_client/server/circ/util.js
Log:
transit isn't in payload first time through with ROUTE_ITEM checkin, fallback on check.org
Modified: branches/rel_1_6_1/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- branches/rel_1_6_1/Open-ILS/xul/staff_client/server/circ/util.js 2010-12-09 18:13:50 UTC (rev 18948)
+++ branches/rel_1_6_1/Open-ILS/xul/staff_client/server/circ/util.js 2010-12-09 18:14:10 UTC (rev 18949)
@@ -2487,7 +2487,7 @@
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,
More information about the open-ils-commits
mailing list