[open-ils-commits] r10096 - branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 23 13:15:30 EDT 2008


Author: erickson
Date: 2008-07-23 13:15:22 -0400 (Wed, 23 Jul 2008)
New Revision: 10096

Modified:
   branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js
Log:
prevent sending empty string as provider val

Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js	2008-07-23 16:17:35 UTC (rev 10095)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js	2008-07-23 17:15:22 UTC (rev 10096)
@@ -113,6 +113,8 @@
 
 	item = this._data[griditem.id];
 	if (attr = "provider") {
+        if(newVal == '') 
+            newVal = null;
 	    item.provider(newVal);
 	} else {
 	    alert("Unexpected attr in Picklist.onSet: '"+attr+"'");



More information about the open-ils-commits mailing list