From 8e80ffbc70804c5c84cc1f54c0ddc60c2d519a2b Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 5 Jul 2009 07:29:24 +0000 Subject: [PATCH] BUGFIX: fixed array to string conversion error with file fields --- code/editor/EditableFileField.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/editor/EditableFileField.php b/code/editor/EditableFileField.php index 42df7a0..4788aaf 100755 --- a/code/editor/EditableFileField.php +++ b/code/editor/EditableFileField.php @@ -31,5 +31,12 @@ class EditableFileField extends EditableFormField { return new FileField($this->Name, $this->Title); } + /** + * Workaround to handle uploads on the UserFormPage + */ + public function getValueFromData($data) { + return ""; + } + } ?> \ No newline at end of file