Files
ms1inscription-v5/sql/MSIN-4379-bib_v4-view-cancelled.sql
stephan 026473dd59 Implement cancellation label function and update SQL for bilingual support in bib view
This commit introduces a new function, `fxBibViewCancelledLabel`, to handle the display of cancellation labels in both French and English. Additionally, SQL updates ensure that the correct cancellation text is set for both languages, enhancing the user experience in the bib view. These changes improve the clarity and accessibility of cancellation information for participants.
2026-06-19 11:12:20 -04:00

15 lines
930 B
SQL

-- MSIN-4379 — Libellé « annulé » dans la vue liste des dossards
SELECT 'bib_v4_view_cancelled', 'fr', 'Annulé', '', 'compte.php', '', 0, 1, '', '', '', NOW()
FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_view_cancelled' AND info_langue = 'fr' AND info_prg = 'compte.php');
SELECT 'bib_v4_view_cancelled', 'en', 'Cancelled', '', 'compte.php', '', 0, 1, '', '', '', NOW()
FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM info WHERE info_clef = 'bib_v4_view_cancelled' AND info_langue = 'en' AND info_prg = 'compte.php');
-- Correction si la clé existe mais affiche le nom technique ou un texte vide
UPDATE info SET info_texte = 'Annulé', info_actif = 1
WHERE info_clef = 'bib_v4_view_cancelled' AND info_langue = 'fr' AND info_prg = 'compte.php';
UPDATE info SET info_texte = 'Cancelled', info_actif = 1
WHERE info_clef = 'bib_v4_view_cancelled' AND info_langue = 'en' AND info_prg = 'compte.php';