This is an automated email from the ASF dual-hosted git repository.

asnaik pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 77af783  [AMBARI-25361] Unable to import Workflow into Workflow 
Manager Due to Script Error
77af783 is described below

commit 77af783f5634d8ff7e2770fa9fecbae3664bb0d5
Author: Gyan Prakash Yadav <34848717+gya...@users.noreply.github.com>
AuthorDate: Thu Aug 15 11:39:21 2019 +0530

    [AMBARI-25361] Unable to import Workflow into Workflow Manager Due to 
Script Error
---
 .../wfmanager/src/main/resources/ui/app/domain/workflow-importer.js     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-importer.js 
b/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-importer.js
index dfc6875..759c41e 100644
--- 
a/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-importer.js
+++ 
b/contrib/views/wfmanager/src/main/resources/ui/app/domain/workflow-importer.js
@@ -63,8 +63,8 @@ var WorkflowImporter= Ember.Object.extend({
     var nodeMap=this.setupNodeMap(workflowAppJson,workflow,Ember.$(xmlDoc));
     this.setupTransitions(workflowAppJson,nodeMap);
     workflow.set("startNode",nodeMap.get("start").node);
-    let globalProperties = 
workflowJson["workflow-app"].global.configuration.property;
     if(workflowJson["workflow-app"].global) {
+    let globalProperties = 
workflowJson["workflow-app"].global.configuration.property;
       if(Ember.isArray(globalProperties)) {
         workflow.set("globalSetting", workflowJson["workflow-app"].global);
       } else  {

Reply via email to