You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by od...@apache.org on 2015/12/17 20:00:27 UTC

ambari git commit: AMBARI-14315. Config properties does not appear in right order(mithmatt via odiachenko).

Repository: ambari
Updated Branches:
  refs/heads/trunk 6b810e141 -> 39873e83a


AMBARI-14315. Config properties does not appear in right order(mithmatt via odiachenko).


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

Branch: refs/heads/trunk
Commit: 39873e83a30b16823f946ea78b3aa5a41f1d4216
Parents: 6b810e1
Author: Oleksandr Diachenko <od...@pivotal.io>
Authored: Thu Dec 17 11:00:09 2015 -0800
Committer: Oleksandr Diachenko <od...@pivotal.io>
Committed: Thu Dec 17 11:00:09 2015 -0800

----------------------------------------------------------------------
 ambari-web/app/mappers/configs/stack_config_properties_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/39873e83/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/configs/stack_config_properties_mapper.js b/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
index 3cc08a4..2c7328e 100644
--- a/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
+++ b/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
@@ -169,7 +169,7 @@ App.stackConfigPropertiesMapper = App.QuickDataMapper.create({
     config.category = uiConfigProperty && uiConfigProperty.category ? uiConfigProperty.category : App.config.getDefaultCategory(true, c.type);
 
     if (uiConfigProperty) {
-      config.index = uiConfigProperty.index || Infinity;
+      config.index = (uiConfigProperty.index !== undefined) ? uiConfigProperty.index : Infinity;
       if (uiConfigProperty.displayType) {
         c.property_value_attributes.type = uiConfigProperty.displayType;
         config.radioName = uiConfigProperty.radioName;