mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
"UploadFieldFileButtons" casting (regression from casting changes)
Caused the UploadField rows to show "[Object object]" because it tried to pass through a PHP object to JS without string casting (the return used to be a string).
This commit is contained in:
parent
93a8e6f16e
commit
7f6671628d
@ -281,7 +281,7 @@ class UploadField extends FileField {
|
|||||||
));
|
));
|
||||||
// we do this in a second customise to have the access to the previous customisations
|
// we do this in a second customise to have the access to the previous customisations
|
||||||
return $file->customise(array(
|
return $file->customise(array(
|
||||||
'UploadFieldFileButtons' => $file->renderWith($this->getTemplateFileButtons())
|
'UploadFieldFileButtons' => (string)$file->renderWith($this->getTemplateFileButtons())
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user