[open-ils-commits] r9569 - in branches/acq-experiment: . Open-ILS/web/js/dojo/fieldmapper

svn at svn.open-ils.org svn at svn.open-ils.org
Mon May 12 22:42:11 EDT 2008


Author: erickson
Date: 2008-05-12 22:42:09 -0400 (Mon, 12 May 2008)
New Revision: 9569

Modified:
   branches/acq-experiment/
   branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/hash.js
Log:
Merged revisions 9568 via svnmerge from 
svn://svn.open-ils.org/ILS/trunk

........
  r9568 | miker | 2008-05-12 22:41:36 -0400 (Mon, 12 May 2008) | 1 line
  
  store actual nulls instead of stringified "null"
........



Property changes on: branches/acq-experiment
___________________________________________________________________
Name: svnmerge-integrated
   - /trunk:1-9566
   + /trunk:1-9568

Modified: branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/hash.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/hash.js	2008-05-13 02:41:36 UTC (rev 9568)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/hash.js	2008-05-13 02:42:09 UTC (rev 9569)
@@ -32,8 +32,11 @@
 	function _toHash (includeNulls) {
 		var _hash = {};
 		for ( var i=0; i < this._fields.length; i++) {
-			if (includeNulls || this[this._fields[i]]() != null)
-				_hash[this._fields[i]] = '' + this[this._fields[i]]();
+			if (includeNulls || this[this._fields[i]]() != null) {
+				if (this[this._fields[i]]() == null)
+                    _hash[this._fields[i]] = null;
+                else
+				    _hash[this._fields[i]] = '' + this[this._fields[i]]();
 		}
 		return _hash;
 	}



More information about the open-ils-commits mailing list