[
https://issues.apache.org/jira/browse/AMBARI-3836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srimanth Gunturi updated AMBARI-3836:
-------------------------------------
Attachment: changes.patch
Reviewing the patch, the problem I had was that the {{selectedConfigGroup}}
variable itself was {{null}}.
I had made my own changes (along with other small fixes) - please use that if
needed.
> Unable to close manage-config-groups dialog when only Default group present
> ---------------------------------------------------------------------------
>
> Key: AMBARI-3836
> URL: https://issues.apache.org/jira/browse/AMBARI-3836
> Project: Ambari
> Issue Type: Bug
> Components: client
> Affects Versions: 1.4.3
> Reporter: Antonenko Alexander
> Assignee: Antonenko Alexander
> Fix For: 1.4.3
>
> Attachments: AMBARI-3836.patch, changes.patch
>
>
> I had only the Default config-group when I launched the manage config-groups
> dialog. When I clicked on Cancel or X, it would not close dialog with the
> following error:
> {noformat}
> Uncaught TypeError: Cannot read property 'id' of null
> {noformat}
> This was in method {{updateConfigGroupOnServicePage()}} at the first line
> below
> {code}
> selectedConfigGroup = managedConfigGroups.findProperty('id',
> selectedConfigGroup.id);
> if(selectedConfigGroup){
> mainServiceInfoConfigsController.set('selectedConfigGroup',
> selectedConfigGroup);
> }else{
> mainServiceInfoConfigsController.set('selectedConfigGroup',
> managedConfigGroups.findProperty('isDefault', true));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)