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:48:38 +0000 (17:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Oct 2009 17:48:38 +0000 (17:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14260 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 2d40f71..1d56b17 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':