Commit 8d1a4a43 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction d'une erreur apparaissant si on vide les heures pour un plafond

parent d7487578
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Plafond/src/Form/PlafondConfigForm.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class PlafondConfigForm extends AbstractForm
        foreach ($plafondConfigs as $plafondConfig) {
            if (isset($heures[$plafondConfig->getPlafond()->getId()])) {
                $v = stringToFloat($heures[$plafondConfig->getPlafond()->getId()]);
                $plafondConfig->setHeures($v);
                $plafondConfig->setHeures($v ?? 0);
            }

            if (isset($etatPrevu[$plafondConfig->getPlafond()->getId()])) {