diff --git a/VERSIONS_HOTLINE/38918 b/VERSIONS_HOTLINE/38918 new file mode 100644 index 0000000000000000000000000000000000000000..ec1671d7980da6742a1e9b7cbbf7d747ebdd9984 --- /dev/null +++ b/VERSIONS_HOTLINE/38918 @@ -0,0 +1 @@ + - ticket #38918 : Modèles de fusion : Prise en charge du libellé de civilité. \ No newline at end of file diff --git a/library/Class/Users.php b/library/Class/Users.php index 88f9068def664bcf36d05aa27c416257c1401dc9..93f29be25dae2794aba5aedf7c495007d9c27400 100644 --- a/library/Class/Users.php +++ b/library/Class/Users.php @@ -1690,4 +1690,14 @@ class Class_Users extends Storm_Model_Abstract { public function getLibelle() { return $this->getNomComplet(); } + + + public function getLibelleCivilite() { + $title = $this->getCivilite(); + $labels = $this->getLoader()->getCivilitiesLabels(); + + return (static::CIVILITE_INDEFINIE != $title || array_key_exists($title, $labels)) + ? $labels[$title] + : ''; + } } \ No newline at end of file