From 33c9f2c07083f2f94f909a27f406da2744c4158f Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 30 Sep 2020 15:56:24 +0100 Subject: 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 --- gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexFiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js') 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 = ""; -- cgit 1.2.3-korg