From 1aa1ea5c6fe64de9579d3dc9d5b92cef779ce083 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 20 Mar 2009 22:05:22 +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/trunk@12635 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 fd554a1b74..fa8634ffe2 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1924,7 +1924,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'); @@ -2396,7 +2396,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