BUG Fix regression with uploadfield casting

This commit is contained in:
Damian Mooyman 2016-07-18 18:33:44 +12:00
parent a8c0c0fc6a
commit b89fcfa188

View File

@ -550,7 +550,7 @@ class UploadField extends FileField {
));
// we do this in a second customise to have the access to the previous customisations
return $file->customise(array(
'UploadFieldFileButtons' => (string)$file->renderWith($this->getTemplateFileButtons())
'UploadFieldFileButtons' => $file->renderWith($this->getTemplateFileButtons())
));
}