Skip to content

Commit

Permalink
Use fully qualified checkbox type (#4628)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaleotti authored and jordisala1991 committed Aug 24, 2017
1 parent 1e2eb81 commit bd87ed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Form/Type/AdminType.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ public function configureOptions(OptionsResolver $resolver)
return $options['btn_delete'] !== false;
},
'delete_options' => array(
'type' => 'checkbox',
// NEXT_MAJOR: Remove ternary (when requirement of Symfony is >= 2.8)
'type' => method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')
? 'Symfony\Component\Form\Extension\Core\Type\CheckboxType'
: 'checkbox',
'type_options' => array(
'required' => false,
'mapped' => false,
Expand Down

0 comments on commit bd87ed2

Please sign in to comment.