plugins/kolab_addressbook
Aleksander Machniak
machniak at kolabsys.com
Tue Feb 24 11:14:34 CET 2015
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 055c5aff1327e503e8c82663ded21ea1666c72b4
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Tue Feb 24 05:13:38 2015 -0500
Support contacts without email address and name, but organization (#3082)
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index 1443e86..1b3ea01 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -1002,9 +1002,11 @@ class rcube_kolab_contacts extends rcube_addressbook
// validate e-mail addresses
$valid = parent::validate($save_data);
- // require at least one e-mail address (syntax check is already done)
+ // require at least one e-mail address if there's no name
+ // (syntax check is already done)
if ($valid) {
if (!strlen($save_data['name'])
+ && !strlen($save_data['organization'])
&& !array_filter($this->get_col_values('email', $save_data, true))
) {
$this->set_error('warning', 'kolab_addressbook.noemailnamewarning');
More information about the commits
mailing list