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.

This commit is contained in:
2026-07-13 17:34:19 -04:00
parent cc2bd15658
commit 1c8782db3c
2 changed files with 6 additions and 2 deletions

View File

@ -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';

View File

@ -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');