From 9bf992a2290327695d2f5c6230c211ae3d564f3f Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 20 Mar 2009 22:08:48 +0000 Subject: [PATCH] Fix the bad status dialog. The acp in the payload used to be fleshed git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@12636 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 20aac5f664..4cfa8acece 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1920,7 +1920,7 @@ circ.util.checkin_via_barcode = function(session,params,backdate,auto_print,asyn ], 'text' : { '1203' : function(r) { - return r.payload.status().name(); + return typeof r.payload.status() == 'object' ? r.payload.status().name() : data.hash.ccs[ r.payload.status() ].name(); }, '1234' : function(r) { return document.getElementById('circStrings').getString('staff.circ.utils.checkin.override.item_deposit_paid.warning'); @@ -2381,7 +2381,7 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { '7002' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '7003' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '7004' : function(r) { - return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [barcode, r.payload.status().name()]); + return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [barcode, typeof r.payload.status() == 'object' ? r.payload.status().name() : obj.data.hash.ccs[ r.payload.status() ].name()]); }, '7006' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '7007' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, -- 2.11.0