diff options
author | 2022-03-10 14:39:42 +0000 | |
---|---|---|
committer | 2022-03-14 11:53:36 +0000 | |
commit | 93b5533e44728faa87c291fbf44120ea013fab51 (patch) | |
tree | fa26abbb89f0c596c84371f3c144957b9591167c /gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js | |
parent | 1e95c73cef25b524bc1f5791d4578332670202f7 (diff) |
Upgrade apex-pdp version in Apex Editor
Upgrade apex-pdp version to 2.7.1-SNAPSHOT
Fix NullPointerException in ModelHandler::setUuidAndDescription
Allow parsing models from policy_type_impl or apexPolicyModel
Remove deprecated Task input and output field functionality
Fix JS REST calls and tests after JAXB to Gson changes
Fix bugs in Task Edit form relating to task logic edit area
Issue-ID: POLICY-3990
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4f506889df46619a0178ab99c99c73ec2fd5a1e3
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js b/gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js index b583ffd..fcd64df 100644 --- a/gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js +++ b/gui-editors/gui-editor-apex/src/main/webapp/js/ApexAjax.js @@ -40,17 +40,16 @@ function ajax_get(requestURL, callback) { }); } -function ajax_getWithKeyInfo(requestURL, objectType, callback, keyNam) { +function ajax_getWithKeyInfo(requestURL, callback, keyNam) { let keyName = keyNam || "key"; let keyInfoURL = window.restRootURL + "/KeyInformation/Get?name=&version="; ajax_get(keyInfoURL, function(dataKeyInfos) { ajax_get(requestURL, function(data) { var keyInfos = []; for (let value of dataKeyInfos.messages) { - var ki = JSON.parse(value).apexKeyInfo; - keyInfos.push(ki); + keyInfos.push(JSON.parse(value)); } - var object = JSON.parse(data.messages[0])[objectType]; + var object = JSON.parse(data.messages[0]); var keyInfo = keyInfos.filter(function(ki) { return ki.key.name === object[keyName].name && ki.key.version === object[keyName].version; |