From 310e94c5db966a6b60be6e763ffa8e5d3291d533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20David?= Date: Mon, 26 Jun 2023 17:02:21 +0200 Subject: [PATCH] #319 [CompletionCertificate] add: session trainer responsible job --- .../doc_completioncertificatedocument_odt.modules.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/modules/dolimeet/dolimeetdocuments/trainingsessiondocument/doc_completioncertificatedocument_odt.modules.php b/core/modules/dolimeet/dolimeetdocuments/trainingsessiondocument/doc_completioncertificatedocument_odt.modules.php index 0ed9522..483e7f0 100644 --- a/core/modules/dolimeet/dolimeetdocuments/trainingsessiondocument/doc_completioncertificatedocument_odt.modules.php +++ b/core/modules/dolimeet/dolimeetdocuments/trainingsessiondocument/doc_completioncertificatedocument_odt.modules.php @@ -348,6 +348,11 @@ public function write_file(SessionDocument $objectDocument, Translate $outputlan $result = $signatory->fetchSignatory('UserSignature', $conf->global->DOLIMEET_SESSION_TRAINER_RESPONSIBLE, 'user'); if(is_array($result) && !empty($result)) { $signatory = array_shift($result); + $user = new User($db); + $user->fetch($signatory->element_id); + $tmparray['company_owner_job'] = $user->job; + } else { + $tmparray['company_owner_job'] = ''; } if (dol_strlen($signatory->signature) > 0 && $signatory->signature != $langs->transnoentities('FileGenerated')) {