mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Incorrect Logic
This commit is contained in:
parent
aa67b9da2f
commit
94b491e125
@ -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