Updated Branches: refs/heads/branch-1.4.3 c85036de2 -> 708ae95a9
AMBARI-4053 Duplicating config-group in installer doesnt update name in default config-group rendering, second patch. (Denys Buzhor via atkach) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/708ae95a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/708ae95a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/708ae95a Branch: refs/heads/branch-1.4.3 Commit: 708ae95a99e3eb4fe7b5d951c21eba49f1c542b2 Parents: c85036d Author: atkach <[email protected]> Authored: Mon Dec 30 19:35:46 2013 +0200 Committer: atkach <[email protected]> Committed: Mon Dec 30 19:35:46 2013 +0200 ---------------------------------------------------------------------- .../controllers/main/service/manage_config_groups_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/708ae95a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js index 6309524..4c1eadf 100644 --- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js +++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js @@ -393,9 +393,9 @@ App.ManageConfigGroupsController = Em.Controller.extend({ }); if (duplicated) { self.get('selectedConfigGroup.properties').forEach(function(property) { - var property = $.extend(false, {},property); + var property = App.ServiceConfigProperty.create($.extend(false, {}, property)); property.set('group', newConfigGroupData); - properties.push(App.ServiceConfigProperty.create(property)); + properties.push(property); }); newConfigGroupData.set('properties', properties); } else {
