You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2013/12/06 19:31:11 UTC
git commit: AMBARI-4009 Config Groups: host got lost if fail to add
it to new group. (ababiichuk)
Updated Branches:
refs/heads/trunk 48e2184fe -> 9a50f98b5
AMBARI-4009 Config Groups: host got lost if fail to add it to new group. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9a50f98b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9a50f98b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9a50f98b
Branch: refs/heads/trunk
Commit: 9a50f98b54e183741c08ffa32386844016a61059
Parents: 48e2184
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Fri Dec 6 20:22:12 2013 +0200
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Fri Dec 6 20:22:25 2013 +0200
----------------------------------------------------------------------
.../controllers/main/service/manage_config_groups_controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9a50f98b/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 04a052b..660ead0 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
@@ -534,7 +534,7 @@ App.InstallerManageConfigGroupsController = App.ManageConfigGroupsController.ext
*/
copyConfigGroups: function (originGroups) {
var configGroups = [];
- var defaultConfigGroup = App.ConfigGroup.create(originGroups.findProperty('isDefault'));
+ var defaultConfigGroup = App.ConfigGroup.create($.extend(true, {},originGroups.findProperty('isDefault')));
originGroups.forEach(function (configGroup) {
if (!configGroup.get('isDefault')) {
var copiedGroup = App.ConfigGroup.create($.extend(true, {}, configGroup));