Update box_boms.php

This commit is contained in:
Laurent Destailleur 2021-06-29 15:41:21 +02:00 committed by GitHub
parent 8332385bd5
commit 474df5fef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,17 @@ class box_boms extends ModeleBoxes
'asis' => 1,
);
if (!empty($conf->global->BOM_BOX_LAST_BOMS_SHOW_VALIDATE_USER)) {
if ($objp->fk_user_valid > 0) {
$userstatic->fetch($objp->fk_user_valid);
}
$this->info_box_contents[$line][] = array(
'td' => 'class="right"',
'text' => (($objp->fk_user_valid > 0) ? $userstatic->getNomUrl(1) : ''),
'asis' => 1,
);
}
$this->info_box_contents[$line][] = array(
'td' => 'class="right"',
'text' => dol_print_date($datem, 'day', 'tzuserrel'),