From 0202a872f5eed8460cddf4481a6caf5cae9861f6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 12 Aug 2011 17:35:21 +0200 Subject: [PATCH] Set maxlength for additional contact fields (#268) --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index dab7a685..39ad7335 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -31,21 +31,21 @@ class rcube_kolab_contacts extends rcube_addressbook 'email' => array('subtypes' => null), 'phone' => array(), 'address' => array('limit' => 2, 'subtypes' => array('home','business')), - 'officelocation' => array('type' => 'text', 'size' => 40, 'limit' => 1, + 'officelocation' => array('type' => 'text', 'size' => 40, 'maxlength' => 50, 'limit' => 1, 'label' => 'kolab_addressbook.officelocation', 'category' => 'main'), 'website' => array('limit' => 1, 'subtypes' => null), 'im' => array('limit' => 1, 'subtypes' => null), 'gender' => array('limit' => 1), - 'initials' => array('type' => 'text', 'size' => 6, 'limit' => 1, + 'initials' => array('type' => 'text', 'size' => 6, 'maxlength' => 10, 'limit' => 1, 'label' => 'kolab_addressbook.initials', 'category' => 'personal'), 'birthday' => array('limit' => 1), 'anniversary' => array('limit' => 1), - 'profession' => array('type' => 'text', 'size' => 40, 'limit' => 1, + 'profession' => array('type' => 'text', 'size' => 40, 'maxlength' => 80, 'limit' => 1, 'label' => 'kolab_addressbook.profession', 'category' => 'personal'), 'manager' => array('limit' => 1), 'assistant' => array('limit' => 1), 'spouse' => array('limit' => 1), - 'children' => array('type' => 'text', 'size' => 40, 'limit' => 1, + 'children' => array('type' => 'text', 'size' => 40, 'maxlength' => 80, 'limit' => 1, 'label' => 'kolab_addressbook.children', 'category' => 'personal'), 'pgppublickey' => array('type' => 'text', 'size' => 40, 'limit' => 1, 'label' => 'kolab_addressbook.pgppublickey'),