Skip to content

Commit

Permalink
Added validation on translation file
Browse files Browse the repository at this point in the history
Fixing #2710
  • Loading branch information
krewetka committed Aug 6, 2020
1 parent c832a0b commit 5aa004b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -19,6 +19,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('file', FileType::class, [
'required' => true,
'label' => 'kuma_translator.form.upload_file_choose',
'constraints' => array(
new NotBlank()
),
]);
$builder->add('force', CheckboxType::class, [
'required' => false,
Expand Down

0 comments on commit 5aa004b

Please sign in to comment.