Update list.php

This commit is contained in:
Laurent Destailleur 2021-05-20 14:28:43 +02:00 committed by GitHub
parent eec1fefaa5
commit 30ab0b05b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -829,12 +829,14 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
break; // Should not happen
}
if (empty($obj->country_code)) $obj->country_code = ''; // TODO Add join in select with country table to get country_code
// Store properties in $object
$object->setVarsFromFetchObj($obj);
$userstatic->id = $obj->rowid;
$userstatic->admin = $obj->admin;
$userstatic->ref = empty($obj->label) ? '' : $obj->label;
$userstatic->ref = $obj->rowid;
$userstatic->login = $obj->login;
$userstatic->statut = $obj->statut;
$userstatic->office_phone = $obj->office_phone;
@ -929,7 +931,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
$totalarray['nbfield']++;
}
}
if (empty($obj->country_code)) $obj->country_code = '';
if (!empty($arrayfields['u.office_phone']['checked'])) {
print "<td>".dol_print_phone($obj->office_phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')."</td>\n";
if (!$i) {