Commit ad78be86 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Passe le flag "required" au widget Javascript.

parent 78c7359d
......@@ -97,6 +97,7 @@ class FileUploadType extends AbstractType
$this->buildWidgetView($view, $form, $options);
$view->vars['widget_attr']['data-create-url'] = $this->router->generate('file_upload_create');
$view->vars['widget_attr']['data-required'] = $options['required'];
$view->vars['multiple'] = $options['multiple'];
if ($options['max_chunk_size'] > 0) {
$view->vars['widget_attr']['data-max-chunk-size'] = $options['max_chunk_size'];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment