瀏覽代碼

AMBARI-6155. JS error on POST config group request (step7 installer). (onechiporenko)

Oleg Nechiporenko 11 年之前
父節點
當前提交
d54c9632f9
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      ambari-web/app/controllers/main/service/info/configs.js
  2. 3 1
      ambari-web/app/utils/config.js

+ 1 - 1
ambari-web/app/controllers/main/service/info/configs.js

@@ -2252,7 +2252,7 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
         this.set('disablePrimary', !modified);
       }.observes('subViewController.isHostsModified'),
       secondary : Em.I18n.t('common.cancel'),
-      didInsertElement: function () {}
+      didInsertElement: Em.K
     });
   },
 

+ 3 - 1
ambari-web/app/utils/config.js

@@ -1200,7 +1200,9 @@ App.config = Em.Object.create({
             configSiteTags: [],
             properties: []
           });
-          self.postNewConfigurationGroup(newConfigGroup);
+          if (!isInstaller) {
+            self.postNewConfigurationGroup(newConfigGroup);
+          }
           if (newConfigGroup) {
             newConfigGroup.set('parentConfigGroup', configGroups.findProperty('isDefault'));
             configGroups.pushObject(newConfigGroup);