summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_addressbook/lib/rcube_kolab_contacts.php')
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab_contacts.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index bc20970..3fc8527 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -400,6 +400,11 @@ class rcube_kolab_contacts extends rcube_addressbook
// NOTE: this is only some rough pre-filtering but probably includes false positives
$squery = $this->_search_query($fields, $value, $mode);
+ // add magic selector to select contacts with birthday dates only
+ if (in_array('birthday', $required)) {
+ $squery[] = array('tags', '=', 'x-has-birthday');
+ }
+
// get all/matching records
$this->_fetch_contacts($squery);