Commit ef2b99cf by Yvon Kerdoncuff

Merge branch '4433-order-cotisation-profiles' into 'develop'

adherents admin: sort profiles de cotisation by montant asc

See merge request cooperatic/kohinos-tav!42
parents 1651aff5 84055e00
...@@ -191,7 +191,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -191,7 +191,7 @@ class AdherentAdmin extends AbstractAdmin
->add('profilDeCotisation', ChoiceType::class, [ ->add('profilDeCotisation', ChoiceType::class, [
'required' => true, 'required' => true,
'label' => 'Choix du profil de cotisation :', 'label' => 'Choix du profil de cotisation :',
'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findAll(), 'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findBy([], ['montant' => 'ASC']),
'empty_data' => null, 'empty_data' => null,
'placeholder' => 'Choisir un profil', 'placeholder' => 'Choisir un profil',
'choice_label' => function ($choice, $key, $value) { 'choice_label' => function ($choice, $key, $value) {
......
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