Update box_mos.php

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

View File

@ -132,6 +132,17 @@ class box_mos extends ModeleBoxes
'asis' => 1,
);
if (!empty($conf->global->MRP_BOX_LAST_MOS_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="center nowraponall"',
'text' => dol_print_date($datem, 'day', 'tzuserrel'),