mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5821 from open-sausages/pulls/4.0/fix-uploadfield-casting
BUG Fix regression with uploadfield casting
This commit is contained in:
commit
2bbddab210
@ -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())
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user