From e5b74effa66e42bdf7a3e6ce43c599601f7e9642 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 23 Feb 2009 16:14:44 +0000 Subject: [PATCH] treat '' as null only when otherwise not dealt with.. '' == false in checkboxes git-svn-id: svn://svn.open-ils.org/ILS/trunk@12274 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 96a2a434ed..e1e43cb31a 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -45,17 +45,13 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { */ getFormattedValue : function() { var value = this.baseWidgetValue(); - - /* text widgets default to "" when no data is entered */ - if(value == '') return null; - switch(this.idlField.datatype) { case 'bool': return (value) ? 't' : 'f' case 'timestamp': return dojo.date.stamp.toISOString(value); default: - return value; + return (value == '') ? null : value; } }, -- 2.11.0