This commit is contained in:
KONE SOREL 2025-12-26 17:28:29 +00:00
parent 1c88fae750
commit 61a88bf5ef
2 changed files with 2 additions and 15 deletions

View File

@ -2,8 +2,8 @@
?>
<input type="hidden" id="codeSociete" value="<?= $_SESSION['codeSociete'] ?? '' ?>">
<input type="hidden" id="codeLangue" value="<?= $_SESSION['lang'] ?? '' ?>">
<input id="codeSociete" value="<?= $_SESSION['codeSociete'] ?? '' ?>">
<input id="codeLangue" value="<?= $_SESSION['lang'] ?? '' ?>">
<input type="hidden" id="codeLangueSociete" value="<?= $_SESSION['codeLangueSociete'] ?? '' ?>">
<input type="hidden" id="devise_C" value="<?= $_SESSION['devise_C'] ?? '' ?>">
<input type="hidden" id="codeExercice_C" value="<?= $_SESSION['codeExercice_C'] ?? '' ?>">

View File

@ -53,23 +53,10 @@ function detectActiveMenu($activeLink, $menus, $gabary) {
$menuData = detectActiveMenu($activeLink, $menus, $gabary);
$activeParentId = $menuData['parent'];
$activeChildId = $menuData['child'];
// Pour le débogage
echo "<script>";
echo "console.log('DÉTECTION MENU:');";
echo "console.log(' Page: \"{$activeLink}\"');";
echo "console.log(' Parent: {$activeParentId}');";
echo "console.log(' Enfant: " . ($activeChildId ?? 'null') . "');";
echo "</script>";
?>
<!-- DIAGNOSTIC - À ajouter juste avant la sidebar -->
<script>
console.group('🔍 DIAGNOSTIC PHP');
console.log('Page active recherchée:', '<?= $activeLink ?>');
console.log('activeParentId trouvé:', '<?= $activeParentId ?>');
console.log('activeChildId trouvé:', '<?= $activeChildId ?>');
// Liste des menus pour vérification
<?php foreach ($menus as $key0 => $menuParent): ?>
console.log('Menu <?= $key0 ?>: "<?= addslashes($menuParent['libeleMenu']) ?>"');