Commit 536aa7ce by Damien Moulard

quickfix

parent 372104e6
......@@ -139,7 +139,7 @@ class UserAdherentController extends FluxController
// TODO: set CB payment when functionality validated
$flux = $form->getData();
if (null != $flux->getDon() && 0 == $flux->getDon()->getMontant()) {
if (null == $flux->getDon() || 0 == $flux->getDon()->getMontant()) {
$flux->setDon(null);
}
......
......@@ -453,7 +453,6 @@ class FormFactory
$entity = new AchatMonnaieAdherent();
$entity->setOperateur($user);
// TODO route OU param tav dans get form achat monnaie (plutot 2eme option)
$form = $this->ff->create(AchatMonnaieAdherentFormType::class, $entity, ['action' => $this->router->generate('paiementCotisTav')]);
return $form->createView();
......
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