diff --git a/code/controllers/CMSFileAddController.php b/code/controllers/CMSFileAddController.php index e13cbe44..bcdfe58d 100644 --- a/code/controllers/CMSFileAddController.php +++ b/code/controllers/CMSFileAddController.php @@ -74,20 +74,13 @@ class CMSFileAddController extends LeftAndMain { $exts = $uploadField->getValidator()->getAllowedExtensions(); asort($exts); + $uploadField->Extensions = implode(', ', $exts); $form = new Form( $this, 'getEditForm', new FieldList( - $uploadField, - new LiteralField( - 'AllowedExtensions', - sprintf( - '
%s: %s
', - _t('AssetAdmin.ALLOWEDEXTS', 'Allowed extensions'), - implode(', ', $exts) - ) - ), + $uploadField, new HiddenField('ID') ), new FieldList()