diff --git a/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js b/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js index a39b3b70c9a7551af5aa3b104b4b7259e4546f20..d782ec9683521eb6af3261a4f67050ea15a4f652 100644 --- a/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js +++ b/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js @@ -13,13 +13,12 @@ if (vars.exists("$param.Country_param") && vars.get("$param.Country_param")) // get the value typed by the user var filter = ""; -var localFilter = vars.getString("$local.filter"); +var localFilter = vars.get("$local.filter"); if(localFilter.filter != null) { filter = localFilter.filter.childs[0].value; } - if (!filter && vars.exists("$param.CurrentValue_param") && vars.get("$param.CurrentValue_param")) filter = vars.get("$param.CurrentValue_param"); diff --git a/process/WsValidation_lib/process.js b/process/WsValidation_lib/process.js index 2bf0c1e4d64115044c486b0907f9c19fb064bd05..dbde73c893426456a7afc3cc91f0c4e15e4d6774 100644 --- a/process/WsValidation_lib/process.js +++ b/process/WsValidation_lib/process.js @@ -131,7 +131,7 @@ WsValidationType.get = function(pKey) var defaultResult = [[{}, pValue]]; defaultResult[0][0][this.paramName] = pValue; resultAddresses = resultAddresses.concat(defaultResult); - + return resultAddresses.map(function(pAddress, pIndex) { pAddress[0].index = pIndex;