mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: prevent jury-fieldset partial from calling old() with wrong arity in partage context
Drop '?: null' coercions on juryPresident/juryPromoteur seeding in partage/index.php so they are '' (not null), making the partial's $addMode guard false and skipping the single-arg old() call that clashes with partage's 3-arg old() signature.
This commit is contained in:
@@ -270,8 +270,8 @@ function renderShareLinkForm(string $slug, array $link): void
|
|||||||
<!-- ═══════════════════ Composition du jury ═══════════════════ -->
|
<!-- ═══════════════════ Composition du jury ═══════════════════ -->
|
||||||
<?php
|
<?php
|
||||||
// Seed jury partial from repopulated $formData (share add-mode).
|
// Seed jury partial from repopulated $formData (share add-mode).
|
||||||
$juryPresident = old($formData, 'jury_president') ?: null;
|
$juryPresident = old($formData, 'jury_president');
|
||||||
$juryPromoteur = old($formData, 'jury_promoteur') ?: null;
|
$juryPromoteur = old($formData, 'jury_promoteur');
|
||||||
$juryPromoteurExt = !empty($formData['jury_promoteur_ext']) ? 1 : 0;
|
$juryPromoteurExt = !empty($formData['jury_promoteur_ext']) ? 1 : 0;
|
||||||
$juryLecteurs = [];
|
$juryLecteurs = [];
|
||||||
for ($i = 0; $i < 4; $i++) {
|
for ($i = 0; $i < 4; $i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user