From cd935938a3319a86628658222da2fffc1df5cf64 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 6 Dec 2009 22:02:29 +0000 Subject: [PATCH] BUGFIX: Fix fileiframefields dying when an image is attached and a folder is expanded via ajax git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94461 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FileIFrameField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/FileIFrameField.php b/forms/FileIFrameField.php index 884cbfd25..0a9a24a9a 100755 --- a/forms/FileIFrameField.php +++ b/forms/FileIFrameField.php @@ -127,7 +127,7 @@ class FileIFrameField extends FileField { } } - $fileSources["existing//$selectFile"] = new TreeDropdownField('ExistingFile', '', $this->dataClass()); + $fileSources["existing//$selectFile"] = new TreeDropdownField('ExistingFile', '', 'File'); return new Form ( $this, @@ -245,4 +245,4 @@ class FileIFrameField extends FileField { return _t('FileIFrameField.FILE', 'File'); } -} \ No newline at end of file +}