Skip to content

Commit

Permalink
Merge pull request #6478 from laudeco/fix/load_board_stat
Browse files Browse the repository at this point in the history
[Expense report] - fix the load board query
  • Loading branch information
eldy committed Mar 5, 2017
2 parents f67c967 + e54e1fd commit a95e416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/expensereport/class/expensereport.class.php
Expand Up @@ -1685,7 +1685,8 @@ function load_board($user, $option='topay')
if ($option == 'toapprove') $sql.= " WHERE ex.fk_statut = 2";
else $sql.= " WHERE ex.fk_statut = 5";
$sql.= " AND ex.entity IN (".getEntity('expensereport', 1).")";
$sql.= " AND ex.fk_user_author IN (".join(',',$userchildids).")";
$sql.= " AND (ex.fk_user_author IN (".join(',',$userchildids).")";
$sql.= " OR ex.fk_user_validator IN (".join(',',$userchildids)."))";

$resql=$this->db->query($sql);
if ($resql)
Expand Down

0 comments on commit a95e416

Please sign in to comment.