Merge branch 'release-1.2' of github.com:roundcube/roundcubemail into release-1.2

pull/5754/head
Aleksander Machniak 7 years ago
commit b213ee9aa0

@ -2,6 +2,7 @@ CHANGELOG Roundcube Webmail
===========================
- Fix so settings/upload.inc could not be used by plugins (#5694)
- Fix regression in LDAP fuzzy search where it always used prefix search instead (#5713)
- Fix bug where namespace prefix could not be truncated on folders list if show_real_foldernames=true (#5695)
RELEASE 1.2.4

@ -1032,11 +1032,11 @@ $config['addressbook_pagesize'] = 50;
// sort contacts by this col (preferably either one of name, firstname, surname)
$config['addressbook_sort_col'] = 'surname';
// the way how contact names are displayed in the list
// 0: display name
// 1: (prefix) firstname middlename surname (suffix)
// 2: (prefix) surname firstname middlename (suffix)
// 3: (prefix) surname, firstname middlename (suffix)
// The way how contact names are displayed in the list.
// 0: prefix firstname middlename surname suffix (only if display name is not set)
// 1: firstname middlename surname
// 2: surname firstname middlename
// 3: surname, firstname middlename
$config['addressbook_name_listing'] = 0;
// use this timezone to display date/time

@ -497,8 +497,11 @@ abstract class rcube_addressbook
$contact = rcube::get_instance()->plugins->exec_hook('contact_displayname', $contact);
$fn = $contact['name'];
if (!$fn) // default display name composition according to vcard standard
$fn = trim(join(' ', array_filter(array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix']))));
// default display name composition according to vcard standard
if (!$fn) {
$fn = join(' ', array_filter(array($contact['prefix'], $contact['firstname'], $contact['middlename'], $contact['surname'], $contact['suffix'])));
$fn = trim(preg_replace('/\s+/', ' ', $fn));
}
// use email address part for name
$email = self::get_col_values('email', $contact, true);
@ -547,6 +550,7 @@ abstract class rcube_addressbook
}
$fn = trim($fn, ', ');
$fn = preg_replace('/\s+/', ' ', $fn);
// fallbacks...
if ($fn === '') {

@ -840,7 +840,7 @@ class rcube_ldap extends rcube_addressbook
}
// compose a full-text-like search filter
$filter = rcube_ldap_generic::fulltext_search_filter($value, $attributes, $mode);
$filter = rcube_ldap_generic::fulltext_search_filter($value, $attributes, $mode & ~rcube_addressbook::SEARCH_GROUPS);
}
// add required (non empty) fields filter

Loading…
Cancel
Save