Permalink
Browse files

ENHANCEMENT Abbreviating comment text display in CommentAdmin to firs…

…t 150 characters (from r105268)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112463 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 2bdf183 commit 72e7ce399b418fba18e8a96fe0026b8c10784b78 @chillu chillu committed Oct 15, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/CommentAdmin.php
View
@@ -86,7 +86,8 @@ public function getEditForm($id = null) {
$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(

0 comments on commit 72e7ce3

Please sign in to comment.