if a timestamp is null, don't attempt to turn it into an iso string
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Oct 2009 17:49:02 +0000 (17:49 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Oct 2009 17:49:02 +0000 (17:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@14262 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js

index 569b37e..6392fd3 100644 (file)
@@ -61,6 +61,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
                 case 'bool':
                     return (value) ? 't' : 'f'
                 case 'timestamp':
+                    if(!value) return null;
                     return dojo.date.stamp.toISOString(value);
                 case 'int':
                 case 'float':