string, 'is_external' => int] * * In "add" mode (no existing jury data), callers should pass nulls/empty arrays and * may rely on the $formData repopulation helpers (old/wasSelected) defined in add.php. * When those helpers exist and no explicit values are set, the partial uses them. */ $juryPresident = $juryPresident ?? null; $juryPromoteur = $juryPromoteur ?? null; $juryPromoteurExt = $juryPromoteurExt ?? 0; $juryLecteurs = $juryLecteurs ?? []; // In add-mode, repopulate from flash form data when helpers are available. $addMode = ($juryPresident === null && $juryPromoteur === null && empty($juryLecteurs)); if ($addMode && function_exists('old')) { $juryPresident = old('jury_president') ?: null; $juryPromoteur = old('jury_promoteur') ?: null; $juryPromoteurExt = function_exists('wasSelected') && wasSelected('jury_promoteur_ext', '1') ? 1 : 0; } $juryIdx = max(count($juryLecteurs), 1); ?>
Composition du jury
Lecteur·ices
$lm): ?>