Commit 159cda32 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction du bug des annulations de MEP

parent 0a23e99d
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Application/src/Controller/PaiementController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ class PaiementController extends AbstractController
            throw new \LogicException('Intervenant non précisé ou inexistant');
        }

        $mep       = $this->params()->fromPost('mep', null);
        $mep       = $this->params()->fromPost('mep', []);
        $paiements = [];
        /* @var $paiements MiseEnPaiement[] */

@@ -294,7 +294,7 @@ class PaiementController extends AbstractController


        foreach ($paiements as $index => $paiement) {
            if ($mep[$paiement->getId()] == "1") {
            if (isset($mep[$paiement->getId()]) && $mep[$paiement->getId()] == "1") {
                if ($paiement->getPeriodePaiement()) {
                    $paiement->setPeriodePaiement(null);
                    $paiement->setDateMiseEnPaiement(null);