From 453aa86f680be252efdfa1146913bd3c6b08599a Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 16 Apr 2015 12:48:30 +1200 Subject: [PATCH] BUG Correct formatting of ParentTitle --- code/admin/CommentsGridFieldConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/admin/CommentsGridFieldConfig.php b/code/admin/CommentsGridFieldConfig.php index ab7a9e5..0377d23 100644 --- a/code/admin/CommentsGridFieldConfig.php +++ b/code/admin/CommentsGridFieldConfig.php @@ -14,8 +14,8 @@ class CommentsGridFieldConfig extends GridFieldConfig_RecordEditor { 'ParentTitle' => function($value, &$item) { return sprintf( '%s', - Convert::raw2xml($item->Link()), - Convert::raw2xml($value) + Convert::raw2att($item->Link()), + $item->obj('ParentTitle')->forTemplate() ); } ));