prevent sending empty string as provider val
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jul 2008 17:15:22 +0000 (17:15 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jul 2008 17:15:22 +0000 (17:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10096 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/acq/Picklist.js

index 4d5881c..33bbc21 100644 (file)
@@ -113,6 +113,8 @@ dojo.declare('openils.acq.Picklist', null, {
 
        item = this._data[griditem.id];
        if (attr = "provider") {
+        if(newVal == '') 
+            newVal = null;
            item.provider(newVal);
        } else {
            alert("Unexpected attr in Picklist.onSet: '"+attr+"'");