Fix addressbook searching by gender (#5757)

pull/5755/merge
Aleksander Machniak 7 years ago
parent 9e56b06e8b
commit 447377f70c

@ -8,6 +8,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 folders list sorting on Windows - if php-intl is available (#5732)
- Fix addressbook searching by gender (#5757)
RELEASE 1.3-rc
--------------

@ -685,6 +685,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