[x] Régler le problème de visualisation d'un semestre d'une autre année dans le parcours

This commit is contained in:
xdrm-brackets 2016-01-04 23:02:57 +01:00
parent 20c49eb5b6
commit cfb354a510
1 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,6 @@ require_once __ROOT__.'/manager/security.php';
/*** GESTION DES PARAMETRES OPTIONNELS ***/ /*** GESTION DES PARAMETRES OPTIONNELS ***/
// on initialise les paramètres optionnels // on initialise les paramètres optionnels
$controleOpt = null; $controleOpt = null;
$groupeOpt = null; $groupeOpt = null;
@ -50,6 +49,9 @@ require_once __ROOT__.'/manager/security.php';
$formationOpt = ($formationOpt == null || $formationOpt == '*') ? null : $formationOpt; $formationOpt = ($formationOpt == null || $formationOpt == '*') ? null : $formationOpt;
$anneeOpt = ($anneeOpt == null || $anneeOpt == '*') ? null : $anneeOpt; $anneeOpt = ($anneeOpt == null || $anneeOpt == '*') ? null : $anneeOpt;
// servira pour le dossier étudiant
$semestreOptBis = $semestreOpt;
/**************************************** /****************************************
* * * *
* SECTION "PARCOURS" * * SECTION "PARCOURS" *
@ -1091,6 +1093,9 @@ if( (permission('master') || permission('admin')) && $etudiantOpt != null ){
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
echo "<section name='studentcase' data-title='Dossier étudiant' class='basic'>"; echo "<section name='studentcase' data-title='Dossier étudiant' class='basic'>";
// on récupère $semestreOpt original
$semestreOpt = $semestreOptBis;
// selection du semestre par défaut // selection du semestre par défaut
if( $semestreOpt == null ) $semestreOpt = $answer->parcours[0]['id']; if( $semestreOpt == null ) $semestreOpt = $answer->parcours[0]['id'];