From 91a894f4598dfd7bd312bb5e674c7880f0a3c847 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 6 Sep 2014 17:10:22 +0200 Subject: [PATCH] Fix: Missing user name --- htdocs/compta/deplacement/list.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/deplacement/list.php b/htdocs/compta/deplacement/list.php index 195bf9023b4..89df2428ca9 100644 --- a/htdocs/compta/deplacement/list.php +++ b/htdocs/compta/deplacement/list.php @@ -56,6 +56,7 @@ $search_ref=GETPOST('search_ref','alpha'); */ $tripandexpense_static=new Deplacement($db); +$userstatic = new User($db); llxHeader(); @@ -132,12 +133,23 @@ if ($resql) $var=!$var; print ''; + // Id print ''.img_object($langs->trans("ShowTrip"),"trip").' '.$obj->rowid.''; + // Type print ''.$langs->trans($obj->type).''; + // Date print ''.dol_print_date($db->jdate($obj->dd),'day').''; - print ''.img_object($langs->trans("ShowUser"),"user").' '.$obj->firstname.' '.$obj->name.''; + // User + print ''; + $userstatic->id = $obj->rowid; + $userstatic->lastname = $obj->lastname; + $userstatic->firstname = $obj->firstname; + print $userstatic->getNomUrl(1); + print ''; + if ($obj->socid) print ''.$soc->getNomUrl(1).''; else print ' '; + print ''.$obj->km.''; $tripandexpense_static->statut=$obj->fk_statut;