Merge pull request #160 from hafriedlander/fix/filefield

FIX submitted fieldfields in submission details in CMS
This commit is contained in:
Will Rossiter 2013-09-04 17:14:06 -07:00
commit 099e91807b
2 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@ class SubmittedFileField extends SubmittedFormField {
$title = _t('SubmittedFileField.DOWNLOADFILE', 'Download File');
if($link) {
return sprintf(
return DBField::create_field('HTMLText', sprintf(
'%s - <a href="%s" target="_blank">%s</a>',
$name, $link, $title
);
));
}
return false;

View File

@ -18,7 +18,7 @@ class SubmittedFormField extends DataObject {
);
private static $summary_fields = array(
'Title',
'Title' => 'Title',
'FormattedValue' => 'Value'
);