From 1c8782db3c4ee9e714caef56aa427495ea35ad3d Mon Sep 17 00:00:00 2001 From: stephan Date: Mon, 13 Jul 2026 17:34:19 -0400 Subject: [PATCH] Update inscription management query logic to handle "Sans dossard" conditions for solo and team entries. Increment version code to 4.72.812 to reflect these changes. --- php/inc_fx_inscriptions_gestion.php | 6 +++++- php/inc_settings.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/php/inc_fx_inscriptions_gestion.php b/php/inc_fx_inscriptions_gestion.php index 5fc2fa7..e165cb8 100644 --- a/php/inc_fx_inscriptions_gestion.php +++ b/php/inc_fx_inscriptions_gestion.php @@ -827,8 +827,12 @@ function fxInscrGestionBuildWhere($intEveId, $arrReq) { if ($arrReq['sel_rech_epreuve'] > 0) { $strWhere .= ' AND p.epr_id = ' . intval($arrReq['sel_rech_epreuve']) . ' AND p.epr_id = e.epr_id'; } + // MSIN-4401 — « Sans dossard » = le numéro affiché en liste (solo: p.no_bib, équipe: e.no_equipe). if ($arrReq['chk_bib']) { - $strWhere .= " AND TRIM(p.no_bib) = ''"; + $strWhere .= ' AND (' + . " (IFNULL(e.pec_equipe, 0) = 0 AND TRIM(IFNULL(p.no_bib, '')) = '')" + . " OR (IFNULL(e.pec_equipe, 0) = 1 AND TRIM(IFNULL(e.no_equipe, '')) = '')" + . ')'; } if ($arrReq['chk_cancelled']) { $strWhere .= ' AND e.is_cancelled = 1'; diff --git a/php/inc_settings.php b/php/inc_settings.php index de11cf1..3fac250 100644 --- a/php/inc_settings.php +++ b/php/inc_settings.php @@ -7,7 +7,7 @@ * Constantes * * **************/ -define('_VERSION_CODE', '4.72.811'); +define('_VERSION_CODE', '4.72.812'); define('_DATE_CODE', '2026-07-13'); //MSIN-4290 define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');