Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed FormField::create() usage

  • Loading branch information...
commit c2f7bf4dcf292ab03a09806438e8417a82d4700f 1 parent 3ae0ac7
@chillu chillu authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 forms/HtmlEditorField.php
View
8 forms/HtmlEditorField.php
@@ -523,12 +523,12 @@ protected function getFieldsForImage($url, $file) {
);
$fields = new FieldList(
- $filePreview = FormField::create('CompositeField',
- FormField::create('CompositeField',
+ $filePreview = CompositeField::create(
+ CompositeField::create(
$previewField
)->setName("FilePreviewImage")->addExtraClass('cms-file-info-preview'),
- FormField::create('CompositeField',
- FormField::create('CompositeField',
+ CompositeField::create(
+ CompositeField::create(
new ReadonlyField("FileType", _t('AssetTableField.TYPE','File type') . ':', $file->FileType),
new ReadonlyField("Size", _t('AssetTableField.SIZE','File size') . ':', $file->getSize()),
$urlField = new ReadonlyField('ClickableURL', _t('AssetTableField.URL','URL'),
Please sign in to comment.
Something went wrong with that request. Please try again.