BUG Fix [buttons] appearing instead of actual buttons when uploading files

This commit is contained in:
Damian Mooyman 2016-08-01 17:04:43 +12:00
parent 59bba54b30
commit 12adba3d34

View File

@ -1208,7 +1208,7 @@ class UploadField extends FileField {
'edit_url' => $customised->UploadFieldEditLink,
'size' => $file->getAbsoluteSize(),
'type' => File::get_file_type($file->getFilename()),
'buttons' => $customised->UploadFieldFileButtons,
'buttons' => (string)$customised->UploadFieldFileButtons,
'fieldname' => $this->getName()
);
}