From: erickson Date: Mon, 5 Oct 2009 17:48:55 +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=6ba4791534ab48356de241ea0d8457b5f9d78818;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@14261 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 2d40f7144f..1d56b17937 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':