[open-ils-commits] r9105 -
branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 21 01:10:10 EDT 2008
Author: miker
Date: 2008-03-21 00:35:37 -0400 (Fri, 21 Mar 2008)
New Revision: 9105
Modified:
branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js
Log:
do not include null fields in the output hash
Modified: branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js
===================================================================
--- branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js 2008-03-21 04:06:34 UTC (rev 9104)
+++ branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js 2008-03-21 04:35:37 UTC (rev 9105)
@@ -2,7 +2,10 @@
function _toHash () {
var _hash = {};
var _fields = fmclasses[this.classname];
- for ( var i=0; i < _fields.length; i++) _hash[_fields[i]] = '' + this[_fields[i]]();
+ for ( var i=0; i < _fields.length; i++) {
+ if (this[_fields[i]]() != null)
+ _hash[_fields[i]] = '' + this[_fields[i]]();
+ }
return _hash;
}
More information about the open-ils-commits
mailing list