From: Dan Scott Date: Fri, 8 Aug 2014 03:19:07 +0000 (-0400) Subject: LP#1292705 Fix broken is*() methods in fm_IDL2js.xsl X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=998660710a5fd9c7e9b5e6e7fdda3a15005d3983;p=evergreen%2Fpines.git LP#1292705 Fix broken is*() methods in fm_IDL2js.xsl A thinko meant that we were no longer incrementing the field variable, leading to breakage in interfaces that used isnew() and the like. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- diff --git a/Open-ILS/xsl/fm_IDL2js.xsl b/Open-ILS/xsl/fm_IDL2js.xsl index ecc374fad5..da1c2b899a 100644 --- a/Open-ILS/xsl/fm_IDL2js.xsl +++ b/Open-ILS/xsl/fm_IDL2js.xsl @@ -19,7 +19,10 @@ var _preload_fieldmapper_IDL = {}; for (var c in _preload_fieldmapper_IDL) { var x = _preload_fieldmapper_IDL[c]; x.field_map = {}; var p = x.fields.length; - for (var n in {isnew:1,ischanged:1,isdeleted:1}) x.fields[p] = {name:n,virtual:true}; + for (var n in {isnew:1,ischanged:1,isdeleted:1}) { + x.fields[p] = {name:n,virtual:true}; + p++; + } for (var f in x.fields) x.field_map[x.fields[f].name] = x.fields[f]; }