BUG Correct formatting of ParentTitle

This commit is contained in:
Damian Mooyman 2015-04-16 12:48:30 +12:00
parent 1410702fce
commit 453aa86f68

View File

@ -14,8 +14,8 @@ class CommentsGridFieldConfig extends GridFieldConfig_RecordEditor {
'ParentTitle' => function($value, &$item) { 'ParentTitle' => function($value, &$item) {
return sprintf( return sprintf(
'<a href="%s" class="cms-panel-link external-link action" target="_blank">%s</a>', '<a href="%s" class="cms-panel-link external-link action" target="_blank">%s</a>',
Convert::raw2xml($item->Link()), Convert::raw2att($item->Link()),
Convert::raw2xml($value) $item->obj('ParentTitle')->forTemplate()
); );
} }
)); ));