summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-08-18 14:17:16 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-08-18 14:17:16 +0200
commit96f084e9cf30fe714efd4ffd5ac6216b4d773d74 (patch)
tree71d22832ce63eddab984a0327e701b202f82c773 /program/js/app.js
parent25a9ec7bb7a1bea7238f400248599e74c4a93950 (diff)
Don't expand recipient groups if they have an email address
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index a8e66e211..845a48000 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4439,7 +4439,7 @@ function rcube_webmail()
this.ksearch_destroy();
// insert all members of a group
- if (typeof this.env.contacts[id] === 'object' && this.env.contacts[id].type == 'group') {
+ if (typeof this.env.contacts[id] === 'object' && this.env.contacts[id].type == 'group' && !this.env.contacts[id].email) {
insert += this.env.contacts[id].name + this.env.recipients_delimiter;
this.group2expand[this.env.contacts[id].id] = $.extend({ input: this.ksearch_input }, this.env.contacts[id]);
this.http_request('mail/group-expand', {_source: this.env.contacts[id].source, _gid: this.env.contacts[id].id}, false);