Skip to content

Commit

Permalink
Merge pull request #5315 from atm-gauthier/develop_fix_usercard_link_…
Browse files Browse the repository at this point in the history
…on_deplacement

FIX : wrong id user deplacement links
  • Loading branch information
eldy committed Jun 6, 2016
2 parents 6454125 + b153ae8 commit a8541fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/deplacement/list.php
Expand Up @@ -80,7 +80,7 @@

llxHeader();

$sql = "SELECT s.nom, s.rowid as socid,"; // Ou
$sql = "SELECT s.nom, d.fk_user, s.rowid as socid,"; // Ou
$sql.= " d.rowid, d.type, d.dated as dd, d.km,"; // Comment
$sql.= " d.fk_statut,";
$sql.= " u.lastname, u.firstname"; // Qui
Expand Down Expand Up @@ -188,7 +188,7 @@
print '<td align="center">'.dol_print_date($db->jdate($obj->dd),'day').'</td>';
// User
print '<td>';
$userstatic->id = $obj->rowid;
$userstatic->id = $obj->fk_user;
$userstatic->lastname = $obj->lastname;
$userstatic->firstname = $obj->firstname;
print $userstatic->getNomUrl(1);
Expand Down

0 comments on commit a8541fc

Please sign in to comment.