mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #29 from guywatson/master
BUGFIX: fix link not appearing in submitted form fields.
This commit is contained in:
commit
584219b0b5
@ -22,7 +22,7 @@ class SubmittedFileField extends SubmittedFormField {
|
||||
$link = $this->getLink();
|
||||
$title = _t('SubmittedFileField.DOWNLOADFILE', 'Download File');
|
||||
|
||||
if(!$link) {
|
||||
if($link) {
|
||||
return sprintf('<a href="%s">%s</a>', $link, $title);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user