Update pdf_cyan.modules.php

This commit is contained in:
Laurent Destailleur 2021-05-25 21:39:50 +02:00 committed by GitHub
parent 6f3d19b7b6
commit bad90240bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,13 +434,12 @@ 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);
$creator_info = $langs->trans("CaseFollowedBy").' '.$tmpuser->getFullName($langs);
if ($tmpuser->email) $creator_info .= ', Mail: '.$tmpuser->email;
if ($tmpuser->office_phone) $creator_info .= ', Tel: '.$tmpuser->office_phone;
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);
}