Commit 6bdafa3f by Julien Jorry

Cotisations Admin : Fix label Expéditeur => Adhérent / Prestataire

parent 3cf5dc09
...@@ -97,7 +97,7 @@ class CotisationAdherentAdmin extends CotisationAdmin ...@@ -97,7 +97,7 @@ class CotisationAdherentAdmin extends CotisationAdmin
$em = $this->getConfigurationPool()->getContainer()->get('doctrine')->getManager(); $em = $this->getConfigurationPool()->getContainer()->get('doctrine')->getManager();
$cotisation = $this->getSubject(); $cotisation = $this->getSubject();
$expediteurInfos = [ $expediteurInfos = [
'label' => 'Expéditeur', 'label' => 'Adhérent',
'class' => Adherent::class, 'class' => Adherent::class,
'choices' => $em->getRepository(Adherent::class)->findOrderByName(), 'choices' => $em->getRepository(Adherent::class)->findOrderByName(),
'placeholder' => 'Choisir un adhérent', 'placeholder' => 'Choisir un adhérent',
......
...@@ -97,7 +97,7 @@ class CotisationPrestataireAdmin extends CotisationAdmin ...@@ -97,7 +97,7 @@ class CotisationPrestataireAdmin extends CotisationAdmin
$em = $this->getConfigurationPool()->getContainer()->get('doctrine')->getManager(); $em = $this->getConfigurationPool()->getContainer()->get('doctrine')->getManager();
$cotisation = $this->getSubject(); $cotisation = $this->getSubject();
$expediteurInfos = [ $expediteurInfos = [
'label' => 'Expéditeur', 'label' => 'Prestataire',
'class' => Prestataire::class, 'class' => Prestataire::class,
'choices' => $em->getRepository(Prestataire::class)->findBy(['enabled' => true, 'mlc' => false], ['raison' => 'ASC']), 'choices' => $em->getRepository(Prestataire::class)->findBy(['enabled' => true, 'mlc' => false], ['raison' => 'ASC']),
'placeholder' => 'Choisir un prestataire', 'placeholder' => 'Choisir un prestataire',
......
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