BUG: Fix the action buttons not rendering on upload.

Due to escaping API changes, a HTMLText instance was being incorrectly
casted to JSON.
This commit is contained in:
Andrew Short 2013-10-08 19:20:18 +11:00
parent 0d9f011ea9
commit f718b90b69

View File

@ -154,7 +154,7 @@ class DMSUploadField extends UploadField {
'thumbnail_url' => $document->Icon($document->getExtension()),
'edit_url' => $this->getItemHandler($document->ID)->EditLink(),
'size' => $document->getFileSizeFormatted(),
'buttons' => $document->renderWith($this->getTemplateFileButtons()),
'buttons' => (string) $document->renderWith($this->getTemplateFileButtons()),
'showeditform' => true
));