From: Stéphane Jacob Date: Thu, 28 Apr 2011 15:04:14 +0000 (+0200) Subject: Fixes retrieval from the list of all corps in profile edition. X-Git-Tag: xorg/1.1.1~54 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7c026a22c882ee46b017f8e3fa2177d468ae4663;p=platal.git Fixes retrieval from the list of all corps in profile edition. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 37b8f3d..aaa256c 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -389,7 +389,7 @@ class ProfileSettingCorps implements ProfileSetting public function getText($value) { static $pubs = array('public' => 'publique', 'ax' => 'annuaire AX', 'private' => 'privé'); - $corpsList = DirEnum::getOptions(DirEnum::CORPS); + $corpsList = DirEnum::getOptions(DirEnum::ORIGINCORPS); $rankList = DirEnum::getOptions(DirEnum::CORPSRANKS); return $corpsList[$value['current']] . ', ' . $corpsList[$value['rank']] . ' (' . 'corps d\'origine : ' . $corpsList[$value['original']] . ', affichage ' . $pubs[$value['pub']] . ')';