Commit a87117bb authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Page Substitution de structure : Warnings à cause de tableaux non fournis

parent 3e4cce30
Loading
Loading
Loading
Loading
+0 −13
Changes for module/Application/view/application/substitution/index.phtml: 0 added lines, 13 removed lines.
Original line number Diff line number Diff line
<?php

use Application\Entity\Db\Etablissement;
use Application\Entity\Db\EcoleDoctorale;
use Application\Entity\Db\UniteRecherche;
use Application\Entity\Db\TypeStructure;
use Application\Entity\Db\Structure;
use Application\Entity\Db\StructureConcreteInterface;
use Application\Provider\Privilege\SubstitutionPrivileges;

/**
 * @var Etablissement[] $etablissementsSubstitues
 * @var EcoleDoctorale[] $ecolesSubstituees
 * @var UniteRecherche[] $unitesSubstituees
 */

$canSubstitutionAutomatique = $this->isAllowed(SubstitutionPrivileges::getResourceId(SubstitutionPrivileges::SUBSTITUION_AUTOMATIQUE));
?>

@@ -21,7 +9,6 @@ $canSubstitutionAutomatique = $this->isAllowed(SubstitutionPrivileges::getResour

<h1 class="page-header first">
    <?php echo $this->translate("Substitution  de structures"); ?>
    <span class="badge"><?php echo count($etablissementsSubstitues) + count($ecolesSubstituees) + count($unitesSubstituees); ?></span>
</h1>

<?php