Bläddra i källkod

AMBARI-2428. Global properties retrieved from server and absent on ui metadata doesn't allow saving configurations.

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494714 13f79535-47bb-0310-9956-ffa450edef68
Jaimin Jetly 12 år sedan
förälder
incheckning
d4e928b61b
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      ambari-web/app/utils/config.js

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

@@ -185,6 +185,8 @@ App.config = Em.Object.create({
         if (_tag.siteName === 'global') {
         if (_tag.siteName === 'global') {
           if (configsPropertyDef) {
           if (configsPropertyDef) {
             this.handleSpecialProperties(serviceConfigObj);
             this.handleSpecialProperties(serviceConfigObj);
+          } else {
+            serviceConfigObj.isVisible = false;  // if the global property is not defined on ui metadata config_properties.js then it shouldn't be a part of errorCount
           }
           }
           serviceConfigObj.id = 'puppet var';
           serviceConfigObj.id = 'puppet var';
           serviceConfigObj.displayName = configsPropertyDef ? configsPropertyDef.displayName : null;
           serviceConfigObj.displayName = configsPropertyDef ? configsPropertyDef.displayName : null;