Selaa lähdekoodia

AMBARI-4221 Add Service Wizard: Customize Services Step, renaming config group missed in property. (Denys Buzhor via atkach)

atkach 11 vuotta sitten
vanhempi
commit
bf0aee7f62

+ 6 - 0
ambari-web/app/controllers/main/service/manage_config_groups_controller.js

@@ -339,6 +339,9 @@ App.ManageConfigGroupsController = Em.Controller.extend({
         }
         self.set('selectedConfigGroup.name', this.get('configGroupName'));
         self.set('selectedConfigGroup.description', this.get('configGroupDesc'));
+        self.get('selectedConfigGroup.properties').forEach(function(property){
+          property.set('group', self.get('selectedConfigGroup'));
+        });
         this.hide();
       }
     });
@@ -485,6 +488,9 @@ App.ManageConfigGroupsController = Em.Controller.extend({
           groupCopy[prop] = group[prop];
         }
       }
+      groupCopy.properties.forEach(function(property){
+        property.set('group', group);
+      });
       result.push(App.ConfigGroup.create(groupCopy));
     }, this);
     return result;