Merge pull request #5821 from open-sausages/pulls/4.0/fix-uploadfield-casting

BUG Fix regression with uploadfield casting
This commit is contained in:
Daniel Hensby 2016-07-18 09:46:39 +01:00 committed by GitHub
commit 2bbddab210

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())
));
}