issue 23461, JavaScript Error : Deploy Applications from Local Packaged File or Directory
Signed-off-by: Gurkan Erdogdu <gerdogdu@managecat.com>
diff --git a/appserver/admingui/common/src/main/resources/js/adminjsf.js b/appserver/admingui/common/src/main/resources/js/adminjsf.js
index 909d190..b1cbfd2 100644
--- a/appserver/admingui/common/src/main/resources/js/adminjsf.js
+++ b/appserver/admingui/common/src/main/resources/js/adminjsf.js
@@ -2007,7 +2007,7 @@
populateDirAndAppName : function(fileChooserId, dirPathId, appNameId, typeId, dropDownProp, contextRootId, extensionId, appTypeString){
var fc = document.getElementById(fileChooserId).getSelectionValue();
- window.opener.getTextElement(dirPathId).value = fc;
+ window.opener.document.getElementById(dirPathId).value = fc;
//for redeploy, there is no dropdown for app type, there is no need to fill in any field.
if (dropDownProp != ""){
admingui.deploy.setFieldValue(appNameId, fc, dropDownProp, typeId, contextRootId, extensionId, window.opener, appTypeString);