Skip to content

Commit

Permalink
Added truncation and tag stripping to description
Browse files Browse the repository at this point in the history
  • Loading branch information
raynichc committed Sep 11, 2020
1 parent ee6b1f4 commit 8c41dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Help Desk/issues_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
$table->addColumn('issueName', __('Name'))
->description(__('Description'))
->format(function ($issue) {
return '<strong>' . __($issue['issueName']) . '</strong><br/><small><i>' . __($issue['description']) . '</i></small>';
return '<strong>' . $issue['issueName'] . '</strong><br/><small><i>' . Format::truncate(strip_tags($issue['description']), 50) . '</i></small>';
});
$table->addColumn('gibbonPersonID', __('Owner'))
->description(__('Category'))
Expand Down

0 comments on commit 8c41dd7

Please sign in to comment.