Skip to content

Commit

Permalink
Fix regression where groups with email address were resolved to its m…
Browse files Browse the repository at this point in the history
…embers' addresses
  • Loading branch information
alecpl committed Feb 7, 2017
1 parent 3608e0c commit f51a101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where mail content frame couldn't be reset in some corner cases (#5608)
- Fix bug where some classic skin images were not displayed in IE/Edge (#5614)
- Fix bug where signature couldn't be added above the quote in Firefox 51 (#5628)
- Fix regression where groups with email address were resolved to its members' addresses

RELEASE 1.2.3
-------------
Expand Down
5 changes: 5 additions & 0 deletions program/steps/mail/autocomplete.inc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ if (!empty($book_types) && strlen($search)) {
$contact['display'] = $display;
}

// groups with defined email address will not be expanded to its members' addresses
if ($sql_arr['_type'] == 'group') {
$contact['email'] = $email;
}

$contacts[$index] = $contact;
$sort_keys[$index] = sprintf('%s %03d', $contact['display'] ?: $name, $idx++);

Expand Down

0 comments on commit f51a101

Please sign in to comment.