소스 검색

HUE-1879 [oozie] Edit a java action twice is broken

toJS method should not modify "files" attribute in a node.
Abraham Elmahrek 12 년 전
부모
커밋
0fb48e5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/oozie/static/js/workflow.node.js

+ 1 - 1
apps/oozie/static/js/workflow.node.js

@@ -239,7 +239,7 @@ var NodeModule = function($, IdGeneratorTable, NodeFields) {
       var self = this;
       var data = ko.mapping.toJS(self);
       if ('files' in data) {
-        self['files'] = ko.toJS(self._files);
+        data['files'] = ko.toJS(self._files);
       }
       return data;
     },