[open-ils-commits] r9565 - 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:23:49 EDT 2008


Author: erickson
Date: 2008-05-12 22:23:47 -0400 (Mon, 12 May 2008)
New Revision: 9565

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

........
  r9564 | miker | 2008-05-12 22:22:32 -0400 (Mon, 12 May 2008) | 1 line
  
  allow null properties coming from objects
........



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

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:22:32 UTC (rev 9564)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/fieldmapper/hash.js	2008-05-13 02:23:47 UTC (rev 9565)
@@ -29,10 +29,10 @@
 		return this;
 	}
 
-	function _toHash () {
+	function _toHash (includeNulls) {
 		var _hash = {};
 		for ( var i=0; i < this._fields.length; i++) {
-			if (this[this._fields[i]]() != null)
+			if (includeNulls || this[this._fields[i]]() != null)
 				_hash[this._fields[i]] = '' + this[this._fields[i]]();
 		}
 		return _hash;



More information about the open-ils-commits mailing list