Dolibarr/dolibarr — pull request #1789 by abhimanyumohan (2014-07-30 05:22:10+00:00)
Title: trip and expenses bug in stable version 

HI Dolibarr team,

I found a bug in the trip and expenses . When we click on the list of trips, everything seems fine but on clicking the person name, it shows user details, that are not related to the particular user. Anyway I rectified it.
I solved the issue by adding fk_user to the line 63 in compta->deplacement->list.php
$sql.= " d.rowid, d.type, d.dated as dd, d.km,d.fk_user,";

and change line 138
to
print '	'.img_object($langs->trans("ShowUser"),"user").' '.$obj->firstname.' '.$obj->lastname.' '.$obj->name.'';

Thanks