Skip to content
Snippets Groups Projects
Commit 98030334 authored by Patrick Barroca's avatar Patrick Barroca
Browse files

rel #38918 : handle user title label in print model

parent f927b8da
Branches
Tags
8 merge requests!1587Master,!1553Master,!1525Master,!1519Master,!1516Master,!1515Master,!1514Hotline master,!1513Hotline#38918 module formation ajout de champs dans les modeles de courrier codes de champs
- ticket #38918 : Modèles de fusion : Prise en charge du libellé de civilité.
\ No newline at end of file
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment