From b89fcfa1884140e3b972cd44516825974f6148c5 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 18 Jul 2016 18:33:44 +1200 Subject: [PATCH] BUG Fix regression with uploadfield casting --- forms/UploadField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/UploadField.php b/forms/UploadField.php index 3f43f3f99..8d35f2f6a 100644 --- a/forms/UploadField.php +++ b/forms/UploadField.php @@ -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()) )); }