Loading module/Formation/src/Formation/Controller/FormationController.php +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading module/Formation/view/formation/formation-instance-presence/renseigner-presences.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -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() ); Loading Loading
module/Formation/src/Formation/Controller/FormationController.php +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading
module/Formation/view/formation/formation-instance-presence/renseigner-presences.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -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() ); Loading