summaryrefslogtreecommitdiff
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-16 12:59:46 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-03-16 12:59:46 (GMT)
commit312fc2521b6a2a1097c877af755e4974ae26bc92 (patch)
tree4b7468d4fa2c3dc15727bd56fa6055036a591032 /lib/kolab_client_task.php
parent5c8910981fd49e389e668e29b30f92abd6c64b12 (diff)
downloadkolab-wap-312fc2521b6a2a1097c877af755e4974ae26bc92.tar.gz
Support maxlength in listelement widget
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 4e1c90c..bd49cd3 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -614,6 +614,10 @@ class kolab_client_task
case 'list':
$result['type'] = kolab_form::INPUT_TEXTAREA;
$result['data-type'] = kolab_form::TYPE_LIST;
+
+ if (!empty($field['maxlength'])) {
+ $result['data-maxlength'] = $field['maxlength'];
+ }
break;
default: