[open-ils-commits] r14260 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 5 13:48:42 EDT 2009
Author: erickson
Date: 2009-10-05 13:48:38 -0400 (Mon, 05 Oct 2009)
New Revision: 14260
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
if a timestamp is null, don't attempt to turn it into an iso string
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-10-05 16:12:22 UTC (rev 14259)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-10-05 17:48:38 UTC (rev 14260)
@@ -61,6 +61,7 @@
case 'bool':
return (value) ? 't' : 'f'
case 'timestamp':
+ if(!value) return null;
return dojo.date.stamp.toISOString(value);
case 'int':
case 'float':
More information about the open-ils-commits
mailing list