Infos speakers: affichage du besoin de défraiement voyage - #2382
Merged
stakovicz merged 1 commit intoSep 2, 2026
Conversation
BySplashGm
marked this pull request as ready for review
September 1, 2026 15:16
BySplashGm
requested review from
Mopolo,
agallou and
stakovicz
as code owners
September 1, 2026 15:16
stakovicz
approved these changes
Sep 1, 2026
vgreb
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
Depuis la PR #1882, un speaker peut cocher deux cases dans la section « Nous vous défrayons » de sa page :
Speaker::isTravelRefundNeeded()(inversé)Speaker::isTravelRefundSponsored()La page BO Infos speakers affichait déjà la seconde (badge
traveldans la colonne « Sponsors ? »), mais pas la première. Un organisateur ne pouvait donc pas savoir quels speakers ne demandent aucun défraiement.Modifications
Ajout d'une colonne « Défraiement voyage nécessaire ? » (oui / non, filtrable) dans
templates/admin/event/speakers_management.html.twig, placée avant la colonne « Sponsors ? » pour regrouper les informations de défraiement.La donnée était déjà disponible de bout en bout — aucune migration ni changement de modèle :
SpeakerRepository::getScheduledSpeakersByEvent()sélectionne déjàspeaker.travel_refund_neededtravel_refund_needed→travelRefundNeededexiste déjàtravel_refund_neededestboolean NOT NULL DEFAULT true, donc la propriété PHP est unboolnon-nullable : pas d'étatN/Aà gérer, contrairement aux autres colonnes booléennes du tableauChoix de libellé
Reprendre littéralement « Je n'en n'ai pas besoin » aurait donné une colonne où « oui » signifie « ne veut pas être remboursé » : double négation, source d'erreur de lecture. Le libellé est donc formulé positivement.
Correction annexe
Le
colspande la ligne « Aucune information » passe de13à15. Il était déjà faux avant ce changement : le tableau compte 15 colonnes réelles (14 nommées + la colonne d'actions), et la colonne « Microphone » ajoutée par #2204 avait porté la valeur à13sans rattraper le décalage existant.Tests
Assertion ajoutée sur l'en-tête de colonne dans
tests/behat/features/Admin/AdminInfosSpeakers.feature, scénario « Liste des speakers liés à un évènement ».À noter : les fixtures ne renseignent pas
travel_refund_needed, les speakers de seed prennent donc la valeur par défaut (oui). Pour vérifier le casnonen local, cocher la case sur la page speaker ouUPDATE afup_conferenciers SET travel_refund_needed = 0 WHERE conferencier_id = 1;.Screenshots
Closes #1974