summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-28 14:51:09 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-01-28 14:51:09 (GMT)
commit0950ff12dcfe5692867abc28bdbdfe5b1839391b (patch)
treee566cc6fde90af2e89d868509e1cca52a865c843 /plugins/kolab_addressbook
parentdf7030f306a08890e2eb590aafb2535eeb8ee25f (diff)
downloadroundcubemail-plugins-kolab-0950ff12dcfe5692867abc28bdbdfe5b1839391b.tar.gz
Tag contacts that have a birthday date set and allow to directly select them
Diffstat (limited to 'plugins/kolab_addressbook')
-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);