[open-ils-commits] r14261 - branches/rel_1_6/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:59 EDT 2009


Author: erickson
Date: 2009-10-05 13:48:55 -0400 (Mon, 05 Oct 2009)
New Revision: 14261

Modified:
   branches/rel_1_6/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: branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-10-05 17:48:38 UTC (rev 14260)
+++ branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-10-05 17:48:55 UTC (rev 14261)
@@ -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