From 2328eaaf02e3a9acb0c74d8c0f68e8c59c9bb5a4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 8 Jan 2018 12:01:06 +0200 Subject: [PATCH] Long Task description #1789 --- app/Ninja/Datatables/TaskDatatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Datatables/TaskDatatable.php b/app/Ninja/Datatables/TaskDatatable.php index 0def74815605..e019c899b1bf 100644 --- a/app/Ninja/Datatables/TaskDatatable.php +++ b/app/Ninja/Datatables/TaskDatatable.php @@ -59,7 +59,7 @@ class TaskDatatable extends EntityDatatable [ 'description', function ($model) { - return e($model->description); + return e(substr($model->description, 0, 80) . (strlen($model->description) > 80 ? '...' : '')); }, ], [