Commit 575fbffe authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Corrections de divers plantages dûs à des valeurs null.

parent 8f64f50a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ Journal des modifications
- Page 'Mes formations' pour le doctorant : suppression de la colonne 'Etablissement'.
- [FIX] Correction de la config des imports api_import_inscription_administrative et api_import_inscription_administrative_apprenant.
- [FIX] Rapport CSI : rétablissement du bouton de suppression d'un rapport.
- [FIX] Corrections de divers plantages dûs à des valeurs null.

12.0.0
------
+4 −0
Original line number Diff line number Diff line
@@ -55,6 +55,10 @@ class HDRAssertion extends AbstractAssertion
            return false;
        }

        if ($this->getRouteMatch() === null) {
            return false; // possible, apparemment
        }

        $this->hdr = $this->getRouteMatch()->getHDR();

        if ($this->hdr === null) return true;
+3 −0
Original line number Diff line number Diff line
@@ -169,6 +169,9 @@ return [
                        'type'          => Segment::class,
                        'options'       => [
                            'route'       => '/afficher/:id',
                            'constraints' => [
                                'id' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'afficher',
                            ],
+3 −0
Original line number Diff line number Diff line
@@ -177,6 +177,9 @@ class RapportActiviteAssertion extends AbstractAssertion
            case 'generer':
            case 'telecharger':
                $this->rapportActivite = $this->getRequestedRapport();
                if ($this->rapportActivite === null) {
                    return false; // possible, apparemment !
                }
                break;

            case 'ajouter':