Skip to content

Commit

Permalink
Fixed conflict with sonata admin bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Fafnur committed Jun 18, 2016
1 parent f936eb7 commit 05a62d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Form/Type/DropzoneType.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public function buildView(FormView $view, FormInterface $form, array $options)
$view->vars['showUploadButton'] = $options['showUploadButton'];
$view->vars['uploaderClass'] = $options['uploaderClass'];
$view->vars['isShowErrorPopup'] = $options['isShowErrorPopup'];
$view->vars['files'] = $files;
$view->vars['countFiles'] = $files->count();
$view->vars['files'] = $files ? $files : [];
$view->vars['countFiles'] = $files ? $files->count() : 0;
$view->vars['showLabel'] = $options['showLabel'];
$view->vars['requestId'] = $options['requestId'];
$view->vars['uploadDir'] = $this->mediaHelper->getUploadDirectoryUrl($context);
Expand Down

0 comments on commit 05a62d4

Please sign in to comment.