ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-4053 Duplicating config-group in installer doesnt update name in default config-group rendering, second patch. (Denys Buzhor via atkach)
Date Mon, 30 Dec 2013 17:36:43 GMT
Updated Branches:
  refs/heads/trunk c868b2e0e -> f3fbc2e9d


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/f3fbc2e9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f3fbc2e9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f3fbc2e9

Branch: refs/heads/trunk
Commit: f3fbc2e9df894b81ec4c9a0f5c9b5279212a16ee
Parents: c868b2e
Author: atkach <atkach@hortonworks.com>
Authored: Mon Dec 30 19:36:37 2013 +0200
Committer: atkach <atkach@hortonworks.com>
Committed: Mon Dec 30 19:36:37 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/f3fbc2e9/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 {


Mime
View raw message