aboutsummaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/main/resources/webapp/js
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-09-30 15:56:24 +0100
committerLiam Fallon <liam.fallon@est.tech>2020-09-30 15:22:25 +0000
commit33c9f2c07083f2f94f909a27f406da2744c4158f (patch)
tree1f8010eb7def66b9b6f055a9f32dae0d070463db /gui-editors/gui-editor-apex/src/main/resources/webapp/js
parent8254698572dd9475c7dd6070ffe7b68361fb6834 (diff)
Pick up userId from apex editor URL
The userId must be picked up from the URL passed to the policy editor and then passed to the server. Issue-ID: POLICY-2850 Change-Id: I98948f2e0a2bf8090926751ee98c26c46d272fcf Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js')
-rw-r--r--gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js
index a8726e7..93b1183 100644
--- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js
+++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js
@@ -51,7 +51,7 @@ function files_fileDownload() {
}
function files_fileUpload() {
- var requestURL = restRootURL + "/Model/Upload";
+ var requestURL = restRootURL + "/Model/Upload?userId=" + new URLSearchParams(window.location.search).get('userId');
ajax_getOKOrFail(requestURL, function(data) {
var uploadResultString = "";