Addinformation to debug absence

This commit is contained in:
Mickael Veaudour 2024-08-06 08:58:32 +02:00
parent 1280c65097
commit 100c1761db
No known key found for this signature in database

View file

@ -27,7 +27,9 @@ class AbsencesAction extends YesWikiAction
foreach ($entries as $entry) {
$identifier = $entry[$eleveIdentifier];
$nom = $entryManager->getOne($identifier)['bf_nom'];
$eleve = $entryManager->getOne($identifier);
echo "<p>".var_dump($eleve)."</p>";
$nom = $eleve['bf_nom'];
if (!isset($grouped_entries[$identifier])) {
$grouped_entries[$identifier] = [
'nom' => $nom,
@ -36,7 +38,7 @@ class AbsencesAction extends YesWikiAction
}
$grouped_entries[$identifier]['entries'][] = $entry;
}
return $this->render('@meeo/edu_absences.twig', [
"groups" => $grouped_entries,
]);