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 <[email protected]> Authored: Thu Dec 17 11:00:09 2015 -0800 Committer: Oleksandr Diachenko <[email protected]> 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;
