parent
38fc05866d
commit
64e52789d6
@ -1216,11 +1216,12 @@ class Contact extends CommonObject
|
|||||||
public function getCivilityLabel()
|
public function getCivilityLabel()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
$langs->load("dict");
|
|
||||||
|
|
||||||
$code=(! empty($this->civility_id)?$this->civility:(! empty($this->civilite)?$this->civilite:''));
|
$code=($this->civility_code ? $this->civility_code : (! empty($this->civility_id)?$this->civility:(! empty($this->civilite)?$this->civilite:'')));
|
||||||
if (empty($code)) return '';
|
if (empty($code)) return '';
|
||||||
return $langs->getLabelFromKey($this->db, "Civility".$code, "c_civility", "code", "label", $code);
|
|
||||||
|
$langs->load("dict");
|
||||||
|
return $langs->getLabelFromKey($this->db, "Civility".$code, "c_civility", "code", "label", $code);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user