Browse Source

HUE-1872 [oozie] convert to decision node broken

Abraham Elmahrek 12 năm trước cách đây
mục cha
commit
c66c9d4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      apps/oozie/static/js/workflow.js

+ 2 - 2
apps/oozie/static/js/workflow.js

@@ -153,12 +153,12 @@ $.extend(ForkNode.prototype, Node.prototype, {
       id: IdGeneratorTable['decisionend'].nextId(),
       node_type: 'decisionend',
       workflow: self.workflow(),
-      child_links: join.model.child_links
+      child_links: ko.mapping.toJS(join.child_links())
     });
-    var decision_end_node = new Node(self._workflow, decision_end_model, self.registry);
     $.each(decision_end_model.child_links, function(index, link) {
       link.parent = decision_end_model.id;
     });
+    var decision_end_node = new Node(self._workflow, decision_end_model, self.registry);
     var parents = join.findParents();
     $.each(parents, function(index, parent) {
       parent.replaceChild(join, decision_end_node);