Fix addressbook searching by gender (#5757)

release-1.2
Aleksander Machniak 7 years ago
parent 1b8d766447
commit 58d7cdc3fc

@ -3,6 +3,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
- Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
- Fix addressbook searching by gender (#5757)
RELEASE 1.2.5
-------------

@ -670,6 +670,11 @@ abstract class rcube_addressbook
&& $value->format('Ymd') == $search->format('Ymd'));
}
// Gender is a special value, must use strict comparison (#5757)
if ($colname == 'gender') {
$mode = self::SEARCH_STRICT;
}
// composite field, e.g. address
foreach ((array)$value as $val) {
$val = mb_strtolower($val);

Loading…
Cancel
Save