From: erickson Date: Fri, 6 May 2005 01:52:52 +0000 (+0000) Subject: logic X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c5954615bc8cfb7ba718cf17fbb3f5403e229207;p=working%2FOpenSRF.git logic git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@306 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/JSON.js b/src/javascript/JSON.js index 538cd78..27a7594 100644 --- a/src/javascript/JSON.js +++ b/src/javascript/JSON.js @@ -52,12 +52,14 @@ function js2JSON(arg) { if( arg.array.constructor != Array ) { var arr = new Array(); for( var i = 0; i < arg.array.length; i++ ) { + if( arg.array[i] == null ) { + arr[i] = null; continue; + } if( typeof arg.array[i] != 'object' ) { arr[i] = arg.array[i]; - } else if(arg.array[i] != null - && typeof arg.array[i] == 'object' + } else if( typeof arg.array[i] == 'object' && arg.array[i]._isfieldmapper) { arr[i] = arg.array[i];