Skip to content

Commit

Permalink
fixed frontend output
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Dec 11, 2018
1 parent 21b98cf commit cf79267
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.12] - 2018-12-11

### Fixed
- frontend output

## [1.0.11] - 2018-11-19

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/Backend/MultiFileUpload.php
Expand Up @@ -145,6 +145,9 @@ public function generateMarkup()
$objT->deletedFiles = '[]';
$objT->attributes = $this->getAttributes($this->getDropZoneOptions());
$objT->widget = $this->widget;
$objT->name = $this->widget->name;
$objT->class = $objT->class.' '.$this->widget->name;
$objT->class = trim($objT->class);

// store in session to validate on upload that field is allowed by user
$fields = System::getContainer()->get('session')->get(static::SESSION_FIELD_KEY);
Expand Down
Expand Up @@ -13,7 +13,7 @@
<?php $this->endblock(); ?>

<?php $this->block('field'); ?>
<div <?= $this->attributes; ?> class="multifileupload dropzone<?= $this->class ? ' ' . $this->class : ''; ?>" id="ctrl_<?= $this->id; ?>">
<div <?= $this->attributes; ?> class="multifileupload dropzone" id="ctrl_<?= $this->id; ?>">
<input type="hidden" name="formattedInitial_<?= $this->id ?>" value='<?= $this->initialFilesFormatted ?: '[]' ?>'>
<input type="hidden" name="uploaded_<?= $this->id ?>" value='[]'>
<input type="hidden" name="deleted_<?= $this->id ?>" value='[]'>
Expand Down

0 comments on commit cf79267

Please sign in to comment.