[open-ils-commits] r12636 - branches/rel_1_4/Open-ILS/xul/staff_client/server/circ (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 20 18:08:53 EDT 2009


Author: phasefx
Date: 2009-03-20 18:08:48 -0400 (Fri, 20 Mar 2009)
New Revision: 12636

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/server/circ/util.js
Log:
Fix the bad status dialog.  The acp in the payload used to be fleshed

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/server/circ/util.js	2009-03-20 22:05:22 UTC (rev 12635)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/server/circ/util.js	2009-03-20 22:08:48 UTC (rev 12636)
@@ -1920,7 +1920,7 @@
 				],
 				'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 @@
 					'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]); },



More information about the open-ils-commits mailing list