From d686b97ad82045b49354d59a852c1fc7f7d9c5c9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 8 Jan 2018 16:31:51 +0200 Subject: [PATCH] Truncate subscription target --- app/Ninja/Datatables/SubscriptionDatatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Datatables/SubscriptionDatatable.php b/app/Ninja/Datatables/SubscriptionDatatable.php index 8538b99391..d83d9a501f 100644 --- a/app/Ninja/Datatables/SubscriptionDatatable.php +++ b/app/Ninja/Datatables/SubscriptionDatatable.php @@ -20,7 +20,7 @@ class SubscriptionDatatable extends EntityDatatable [ 'target', function ($model) { - return $model->target; + return e(substr($model->target, 0, 40) . (strlen($model->target) > 40 ? '...' : '')); }, ], ];