Fixes retrieval from the list of all corps in profile edition.
authorStéphane Jacob <sj@m4x.org>
Thu, 28 Apr 2011 15:04:14 +0000 (17:04 +0200)
committerStéphane Jacob <sj@m4x.org>
Thu, 28 Apr 2011 15:04:14 +0000 (17:04 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/jobs.inc.php

index 37b8f3d..aaa256c 100644 (file)
@@ -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']] . ')';