[open-ils-commits] r17895 - branches/rel_2_0/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 22 15:38:50 EDT 2010
Author: phasefx
Date: 2010-09-22 15:38:45 -0400 (Wed, 22 Sep 2010)
New Revision: 17895
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
Log:
merge r17894 from trunk to fix bug in Item Status -> Alternate View for items with no circ modifier
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js 2010-09-22 19:37:43 UTC (rev 17894)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js 2010-09-22 19:38:45 UTC (rev 17895)
@@ -169,7 +169,11 @@
set("copy_circ_lib" , typeof details.copy.circ_lib() == 'object' ? details.copy.circ_lib().shortname() : data.hash.aou[ details.copy.circ_lib() ].shortname());
set_tooltip("copy_circ_lib" , typeof details.copy.circ_lib() == 'object' ? details.copy.circ_lib().name() : data.hash.aou[ details.copy.circ_lib() ].name());
var cm = details.copy.circ_modifier();
- set("circ_modifier", document.getElementById('commonStrings').getFormattedString('staff.circ_modifier.display',[cm,data.hash.ccm[cm].name(),data.hash.ccm[cm].description()]));
+ if (typeof data.hash.ccm[cm] != 'undefined') {
+ set("circ_modifier", document.getElementById('commonStrings').getFormattedString('staff.circ_modifier.display',[cm,data.hash.ccm[cm].name(),data.hash.ccm[cm].description()]));
+ } else {
+ set("circ_modifier","");
+ }
set("circulate", get_localized_bool( details.copy.circulate() ));
set("copy_number", details.copy.copy_number());
set("copy_create_date", util.date.formatted_date( details.copy.create_date(), '%{localized}' ));
More information about the open-ils-commits
mailing list