forked from Wavyzz/dolibarr
Merge pull request #17635 from FHenry/fix_13_cyan_salesman_as_note
fix : hidden option MAIN_ADD_CREATOR_IN_NOTE should use dol_concatdesc rather than php concat oparator
This commit is contained in:
@@ -434,13 +434,14 @@ class pdf_cyan extends ModelePDFPropales
|
||||
$notetoshow = dol_concatdesc($notetoshow, $extranote);
|
||||
}
|
||||
|
||||
if (!empty($conf->global->MAIN_ADD_CREATOR_IN_NOTE) && $object->user_author_id > 0)
|
||||
{
|
||||
if (!empty($conf->global->MAIN_ADD_CREATOR_IN_NOTE) && $object->user_author_id > 0) {
|
||||
$tmpuser = new User($this->db);
|
||||
$tmpuser->fetch($object->user_author_id);
|
||||
$notetoshow .= $langs->trans("CaseFollowedBy").' '.$tmpuser->getFullName($langs);
|
||||
if ($tmpuser->email) $notetoshow .= ', Mail: '.$tmpuser->email;
|
||||
if ($tmpuser->office_phone) $notetoshow .= ', Tel: '.$tmpuser->office_phone;
|
||||
$creator_info = $langs->trans("CaseFollowedBy").' '.$tmpuser->getFullName($langs);
|
||||
if ($tmpuser->email) $creator_info .= ', '.$langs->trans("EMail").': '.$tmpuser->email;
|
||||
if ($tmpuser->office_phone) $creator_info .= ', '.$langs->trans("Phone").': '.$tmpuser->office_phone;
|
||||
|
||||
$notetoshow = dol_concatdesc($notetoshow, $creator_info);
|
||||
}
|
||||
|
||||
$tab_height = $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforsignature - $heightforfooter;
|
||||
|
||||
Reference in New Issue
Block a user