Browse Source

Fix warning message when sending contact info see BT#14371

Julio 6 years ago
parent
commit
681832f530
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Chamilo/ContactBundle/Form/Type/ContactType.php

+ 2 - 2
src/Chamilo/ContactBundle/Form/Type/ContactType.php

@@ -39,14 +39,14 @@ class ContactType extends AbstractType
             ->add('subject', 'text')
             ->add('message', 'textarea')
             // Ofaj
-            ->add('gdpr_checkbox', CheckboxType::class)
+            ->add('gdpr_checkbox', CheckboxType::class, ['mapped' => false])
             ->add(
                 'gdpr_textarea',
                 'textarea',
                 [
                     'disabled' => 'disabled',
                     'label' => false,
-                    'attr' => ['rows' => 5]
+                    'attr' => ['rows' => 5],
                     //'label_attr' => ['style' => 'display:none'],
                 ]
             )