Fixed a bug when showing users to define holidays
This commit is contained in:
parent
52b9a3ad91
commit
b9429fc98e
@ -322,16 +322,18 @@ print '</form>'."\n\n";
|
||||
dol_fiche_end();
|
||||
|
||||
|
||||
/*$var=!$var;
|
||||
print $langs->trans('nbUserCP').': '."\n";
|
||||
print $cp->getConfCP('nbUser')."<br>\n";
|
||||
/*$var=!$var;
|
||||
print $langs->trans('nbUserCP').': '."\n";
|
||||
print $cp->getConfCP('nbUser')."<br>\n";
|
||||
*/
|
||||
|
||||
$var=!$var;
|
||||
print $langs->trans('LastUpdateCP').': '."\n";
|
||||
print dol_print_date($db->jdate($cp->getConfCP('lastUpdate')),'dayhour','tzuser')."<br>\n";
|
||||
|
||||
print '<br>';
|
||||
$var=!$var;
|
||||
print $langs->trans('LastUpdateCP').': '."\n";
|
||||
if ($cp->getConfCP('lastUpdate')) print dol_print_date($db->jdate($cp->getConfCP('lastUpdate')),'dayhour','tzuser');
|
||||
else print $langs->trans('None');
|
||||
print "<br>\n";
|
||||
|
||||
print '<br>';
|
||||
|
||||
print_fiche_titre($langs->trans('TitleOptionEventCP'),'','');
|
||||
|
||||
|
||||
@ -1151,7 +1151,7 @@ class Holiday extends CommonObject
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
|
||||
$tab_result[$i]['rowid'] = $obj->rowid;
|
||||
$tab_result[$i]['name'] = $obj->name;
|
||||
$tab_result[$i]['name'] = $obj->lastname;
|
||||
$tab_result[$i]['firstname'] = $obj->firstname;
|
||||
|
||||
$i++;
|
||||
@ -1191,7 +1191,7 @@ class Holiday extends CommonObject
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
|
||||
$tab_result[$i]['rowid'] = $obj->fk_user;
|
||||
$tab_result[$i]['name'] = $obj->name;
|
||||
$tab_result[$i]['name'] = $obj->lastname;
|
||||
$tab_result[$i]['firstname'] = $obj->firstname;
|
||||
|
||||
$i++;
|
||||
|
||||
@ -159,7 +159,7 @@ foreach($listUsers as $users)
|
||||
print '<td>'.$users['rowid'].'</td>';
|
||||
print '<td>';
|
||||
$userstatic->id=$users['rowid'];
|
||||
$userstatic->lastname=$users['lastname'];
|
||||
$userstatic->lastname=$users['name'];
|
||||
$userstatic->firstname=$users['firstname'];
|
||||
print $userstatic->getNomUrl(1);
|
||||
print '</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user