Commit c569ff7a by Damien Moulard

Fix anomalie 4 : champ Reference obligatoire

parent cd58f002
......@@ -56,7 +56,7 @@ class UserAdmin extends SonataUserAdmin
{
parent::configureListFields($listMapper);
unset($this->listModes['mosaic']);
if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) {
$listMapper
->addIdentifier('impersonating', 'string', ['template' => '@SonataUser/Admin/Field/impersonating.html.twig'])
......
......@@ -96,7 +96,7 @@ class FluxFormType extends AbstractType
$builder
->add('reference', TextType::class, array(
'label' => 'Reference :',
'required' => false
'required' => true
))
->add('save', SubmitType::class, ['label' => "Valider"])
->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($builder) {
......
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