Skip to content

Commit

Permalink
FIX : wrong id user deplacement links
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-gauthier committed Jun 6, 2016
1 parent 4416925 commit b153ae8
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 b153ae8

Please sign in to comment.