From 7228d39b1c9c6f78c14e2fd3cc387d805d6c22ef Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 5 Oct 2009 17:48:38 +0000 Subject: [PATCH] if a timestamp is null, don't attempt to turn it into an iso string 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 | 1 + 1 file changed, 1 insertion(+) 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': -- 2.11.0