do not promote a number widget's value to '0' when the value is null/isNaN. that...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 Jan 2010 15:13:28 +0000 (15:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 28 Jan 2010 15:13:28 +0000 (15:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15395 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 4284e3c..a9ea114 100644 (file)
@@ -93,7 +93,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
                 case 'int':
                 case 'float':
                 case 'money':
-                    if(isNaN(value)) value = 0;
+                    if(isNaN(value)) value = null;
                 default:
                     return (value === '') ? null : value;
             }