Skip to content

Commit

Permalink
Merge pull request #5658 from JohnDoh/group-rename
Browse files Browse the repository at this point in the history
small amendment to #5652
  • Loading branch information
alecpl authored Feb 20, 2017
2 parents 13b9819 + d379dc8 commit 3dd24bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6253,7 +6253,8 @@ function rcube_webmail()
delete this.env.contactgroups[key];
}

this.list_contacts(prop.source, 0);
if (prop.source == this.env.source && prop.id == this.env.group)
this.list_contacts(prop.source, 0);
};

//remove selected contacts from current active group
Expand Down Expand Up @@ -6324,7 +6325,7 @@ function rcube_webmail()
$(this.treelist.get_item(key)).children().first().html(prop.name);
this.env.contactfolders[key].name = this.env.contactgroups[key].name = prop.name;

if (prop.id == this.env.group)
if (prop.source == this.env.source && prop.id == this.env.group)
this.set_group_prop(prop);
}

Expand Down

0 comments on commit 3dd24bc

Please sign in to comment.