Fix addressbook searching by gender (#5757)

pull/5762/head
Aleksander Machniak 8 years ago
parent 5804ef8aa2
commit d151afd229

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

@ -685,6 +685,11 @@ abstract class rcube_addressbook
&& $value->format('Ymd') == $search->format('Ymd')); && $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 // composite field, e.g. address
foreach ((array)$value as $val) { foreach ((array)$value as $val) {
$val = mb_strtolower($val); $val = mb_strtolower($val);

Loading…
Cancel
Save