Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

BUG: File Uploading Notifications (fixes #7883) #223

Merged
merged 1 commit into from Nov 2, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −9
Split
@@ -74,20 +74,13 @@ public function getEditForm($id = null, $fields = null) {
$exts = $uploadField->getValidator()->getAllowedExtensions();
asort($exts);
+ $uploadField->Extensions = implode(', ', $exts);
$form = new Form(
$this,
'getEditForm',
new FieldList(
- $uploadField,
- new LiteralField(
- 'AllowedExtensions',
- sprintf(
- '<p>%s: %s</p>',
- _t('AssetAdmin.ALLOWEDEXTS', 'Allowed extensions'),
- implode('<em>, </em>', $exts)
- )
- ),
+ $uploadField,
new HiddenField('ID')
),
new FieldList()