# Bug in trip and expenses

**URL:** <https://www.dolibarr.org/forum/t/bug-in-trip-and-expenses/10847>\
**Category:** Using my Dolibarr\
**Created:** [July 24, 2014, 1:37pm UTC](https://www.dolibarr.org/forum/t/bug-in-trip-and-expenses/10847 "2014-07-24T13:37:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhimanyu](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/abhimanyu/32/335_2.png) [@abhimanyu](https://www.dolibarr.org/forum/u/abhimanyu)\
**Post date:** [July 24, 2014, 1:37pm UTC](https://www.dolibarr.org/forum/t/bug-in-trip-and-expenses/10847/1 "2014-07-24T13:37:17Z")

</div>

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 ‘\<td align=“left”\>\<a href="’.DOL\_URL\_ROOT.’/user/fiche.php?id=’.$obj-\>fk\_user.’"\>’.img\_object($langs-\>trans(“ShowUser”),“user”).’ ‘.$obj-\>firstname.’&nbsp;‘.$obj-\>lastname.’ ‘.$obj-\>name.’\</a\>\</td\>’;

Thanks

---

<div class="post-metadata">

**Author:** ![HubZ](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/e79b87/32.png) [@HubZ](https://www.dolibarr.org/forum/u/HubZ)\
**Post date:** [July 28, 2014, 7:41am UTC](https://www.dolibarr.org/forum/t/bug-in-trip-and-expenses/10847/2 "2014-07-28T07:41:20Z")

</div>

Did you try to open Pull Requests on Github, you will see it is ten times more lively than english forum :wink:  
French one is lively too but, anyway, bugs and dev requests on this forum souhld be reported on [Doliforge.org](http://Doliforge.org) first (create an account with this forum topic as message for example), report the bug, and Pull Request on Github to have it corrected.

Those 2 steps (Doliforge/Github) are necessary for developpers Mail list I think…  
But maybe if it is very small change like this one, only Github could be OK (with a little word in the changelog file off course)
