Commit ca99b801 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Déblocage de la saisie des présences

parent 9de3feb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class FormationController extends AbstractActionController
        $historise = $this->params()->fromQuery('historise');

        $formations = $this->getFormationService()->getFormationsByGroupe($groupe_);
        if ($source !== null AND $source !== "") $formations = array_filter($formations, function (Formation $a) use ($source) { return $a->getSource() === $source; });
        if ($source !== null AND $source !== "") $formations = array_filter($formations, function (Formation $a) use ($source) { return $a->getSource()->getCode() === $source; });
        if ($historise !== null AND $historise !== "") $formations = array_filter($formations, function (Formation $a) use ($historise) {
            if ($historise === "1") return $a->estHistorise();
            if ($historise === "0") return $a->estNonHistorise();
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ $journees = $instance->getJournees();
/** @var FormationInstanceInscrit[] $inscrits */
$inscrits = $instance->getListePrincipale();

$canPresenceModifier = $instance->getEtat()->getCode() === SessionEtats::ETAT_ATTENTE_RETOURS &&
$canPresenceModifier = /**$instance->getEtat()->getCode() === SessionEtats::ETAT_ATTENTE_RETOURS &&**/
    $this->isAllowed(FormationinstancepresencePrivileges::getResourceId(FormationinstancepresencePrivileges::FORMATIONINSTANCEPRESENCE_MODIFIER));

$this->headTitle("Présences pour la formation : " . $instance->getInstanceCode() . " " . $instance->getFormation()->getLibelle() );