[open-ils-commits] r12432 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 5 16:26:14 EST 2009
Author: erickson
Date: 2009-03-05 16:26:10 -0500 (Thu, 05 Mar 2009)
New Revision: 12432
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
don't assume org unit value is non-null
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 21:24:25 UTC (rev 12431)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 21:26:10 UTC (rev 12432)
@@ -78,6 +78,7 @@
var date = dojo.date.stamp.fromISOString(value);
return dojo.date.locale.format(date, {formatLength:'short'});
case 'org_unit':
+ if(value === null || value === undefined) return '';
return fieldmapper.aou.findOrgUnit(value).shortname();
case 'int':
case 'float':
More information about the open-ils-commits
mailing list