diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index fe0d0994..2ccea3fa 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -86,7 +86,8 @@ class CommentAdmin extends LeftAndMain { $table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC'); $table->setParentClass(false); $table->setFieldCasting(array( - 'Created' => 'SSDatetime->Full' + 'Created' => 'SSDatetime->Full', + 'Comment' => array('HTMLText->LimitCharacters', 150) )); $fields = new FieldSet(