FIX #2832: Fixed a problem with special characters in expense report PDF model
This commit is contained in:
parent
0fd134f825
commit
b7809c788a
@ -417,22 +417,22 @@ class ExpenseReport extends CommonObject
|
|||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
if ($mode == 0)
|
if ($mode == 0)
|
||||||
return $langs->trans($this->statuts[$status]);
|
return $langs->transnoentities($this->statuts[$status]);
|
||||||
|
|
||||||
if ($mode == 1)
|
if ($mode == 1)
|
||||||
return $langs->trans($this->statuts_short[$status]);
|
return $langs->transnoentities($this->statuts_short[$status]);
|
||||||
|
|
||||||
if ($mode == 2)
|
if ($mode == 2)
|
||||||
return img_picto($langs->trans($this->statuts_short[$status]), $this->statuts_logo[$status]).' '.$langs->trans($this->statuts_short[$status]);
|
return img_picto($langs->transnoentities($this->statuts_short[$status]), $this->statuts_logo[$status]).' '.$langs->transnoentities($this->statuts_short[$status]);
|
||||||
|
|
||||||
if ($mode == 3)
|
if ($mode == 3)
|
||||||
return img_picto($langs->trans($this->statuts_short[$status]), $this->statuts_logo[$status]);
|
return img_picto($langs->transnoentities($this->statuts_short[$status]), $this->statuts_logo[$status]);
|
||||||
|
|
||||||
if ($mode == 4)
|
if ($mode == 4)
|
||||||
return img_picto($langs->trans($this->statuts_short[$status]),$this->statuts_logo[$status]).' '.$langs->trans($this->statuts[$status]);
|
return img_picto($langs->transnoentities($this->statuts_short[$status]),$this->statuts_logo[$status]).' '.$langs->transnoentities($this->statuts[$status]);
|
||||||
|
|
||||||
if ($mode == 5)
|
if ($mode == 5)
|
||||||
return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$status]).' </span>'.img_picto($langs->trans($this->statuts_short[$status]),$this->statuts_logo[$status]);
|
return '<span class="hideonsmartphone">'.$langs->transnoentities($this->statuts_short[$status]).' </span>'.img_picto($langs->transnoentities($this->statuts_short[$status]),$this->statuts_logo[$status]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user