Repository: ambari
Updated Branches:
  refs/heads/branch-dev-patch-upgrade f99d82118 -> 3265d0b8f


AMBARI-13432 Issue with config tab. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6bcdcd9a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6bcdcd9a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6bcdcd9a

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 6bcdcd9ac9c44c6536355b061024e91eacafa960
Parents: 80c1c9c
Author: aBabiichuk <ababiic...@cybervisiontech.com>
Authored: Thu Oct 15 16:26:39 2015 +0300
Committer: aBabiichuk <ababiic...@cybervisiontech.com>
Committed: Thu Oct 15 16:30:17 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/configs.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6bcdcd9a/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js 
b/ambari-web/app/controllers/main/service/info/configs.js
index 947254a..4cb67a7 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -447,10 +447,9 @@ App.MainServiceInfoConfigsController = 
Em.Controller.extend(App.ConfigsLoader, A
           for (var prop in config.properties) {
             var fileName = App.config.getOriginalFileName(config.type);
             var serviceConfig = allConfigs.filterProperty('name', 
prop).findProperty('filename', fileName);
-            var value = App.config.formatPropertyValue(serviceConfig, 
config.properties[prop]);
-            var isFinal = !!(config.properties_attributes && 
config.properties_attributes.final && config.properties_attributes.final[prop]);
-
             if (serviceConfig) {
+              var value = App.config.formatPropertyValue(serviceConfig, 
config.properties[prop]);
+              var isFinal = !!(config.properties_attributes && 
config.properties_attributes.final && config.properties_attributes.final[prop]);
               if (self.get('selectedConfigGroup.isDefault') || 
configGroup.get('name') == self.get('selectedConfigGroup.name')) {
                 var overridePlainObject = {
                   "value": value,

Reply via email to