Ver Fonte

AMBARI-13675 Toggling and Saving "Enable User Sync" on Ranger User Info page generates error count on Advanced tab. (atkach)

Andrii Tkach há 9 anos atrás
pai
commit
0f0cf13d7d
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 1
      ambari-web/app/utils/config.js
  2. 2 1
      ambari-web/test/utils/config_test.js

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

@@ -337,7 +337,8 @@ App.config = Em.Object.create({
       dependentConfigPattern: null,
       options: null,
       radioName: null,
-      belongsToService: []
+      belongsToService: [],
+      widget: null
     };
     return Object.keys(coreObject|| {}).length ?
       $.extend(tpl, coreObject) : tpl;

+ 2 - 1
ambari-web/test/utils/config_test.js

@@ -1005,7 +1005,8 @@ describe('App.config', function () {
       dependentConfigPattern: null,
       options: null,
       radioName: null,
-      belongsToService: []
+      belongsToService: [],
+      widget: null
     };
     it('create default config object', function () {
       expect(App.config.createDefaultConfig('pName', 'pServiceName', 'pFileName', true)).to.eql(res);