From: erickson Date: Mon, 5 Oct 2009 17:49:02 +0000 (+0000) Subject: if a timestamp is null, don't attempt to turn it into an iso string X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9675dacf2837f5844e117c405c2ec3d851d5ea6c;p=Evergreen.git if a timestamp is null, don't attempt to turn it into an iso string git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@14262 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 569b37ec5f..6392fd3f94 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -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':