From 7c026a22c882ee46b017f8e3fa2177d468ae4663 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Thu, 28 Apr 2011 17:04:14 +0200 Subject: [PATCH] Fixes retrieval from the list of all corps in profile edition. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/jobs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']] . ')'; -- 2.1.4