Skip to content

Commit

Permalink
#319 [CompletionCertificate] add: session trainer responsible job
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo David committed Jun 26, 2023
1 parent 9ab95de commit 310e94c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 310e94c

Please sign in to comment.