From 3ebc5f2123d0554d6311b65ea162ce9c21e6eb20 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Fri, 31 May 2019 12:04:15 +0200 Subject: [PATCH] fix address validation --- .../recordcontainers/jdito/contentProcess.js | 3 +-- process/WsValidation_lib/process.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js b/entity/AddressValidation_entity/recordcontainers/jdito/contentProcess.js index a39b3b70c9..d782ec9683 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 2bf0c1e4d6..dbde73c893 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; -- GitLab