V1.15.17 Evolutions des consignes

This commit is contained in:
2026-09-08 01:29:41 +00:00
parent d287607e45
commit 0f7437fa77
18 changed files with 1361 additions and 121 deletions
+3 -2
View File
@@ -138,7 +138,8 @@ try {
// fichier reste volontairement passif : il ne renvoie que ce qui a été
// réellement dit (assistant_id reste null si personne n'est cité), sans
// jamais anticiper une décision qui appartient à l'étage suivant.
$agents = $pdo->query('SELECT AGN_Incr, AGN_Nom, AGN_Fonction, AGN_Variantes FROM ASP_Agents ORDER BY AGN_Incr ASC')->fetchAll();
// AGN_Nom renommée AGN_Prenom en base (7 septembre 2026, nuit).
$agents = $pdo->query('SELECT AGN_Incr, AGN_Prenom, AGN_Fonction, AGN_Variantes FROM ASP_Agents ORDER BY AGN_Incr ASC')->fetchAll();
$actionsDisponibles = $pdo->query('SELECT ACT_Code, ACT_Libelle FROM ASP_Actions ORDER BY ACT_Libelle ASC')->fetchAll();
} catch (PDOException $e) {
http_response_code(500);
@@ -226,7 +227,7 @@ $listeProfessions = $professions
: '(aucune profession existante)';
$listeAgents = $agents
? implode(', ', array_map(
fn($a) => $a['AGN_Incr'] . ' = ' . $a['AGN_Nom'] .
fn($a) => $a['AGN_Incr'] . ' = ' . $a['AGN_Prenom'] .
($a['AGN_Variantes'] ? ' (variantes tolérées : ' . $a['AGN_Variantes'] . ')' : ''),
$agents
))