Fixed a bug preventing invoice sorting by authors

This commit is contained in:
Raphaël Doursenaud 2012-05-25 16:35:46 +02:00 committed by Regis Houssin
parent 1a73347866
commit d79b65ce49

View File

@ -3263,7 +3263,7 @@ else
if ($userid) if ($userid)
{ {
if ($userid == -1) $sql.=' AND f.fk_user_author IS NULL'; if ($userid == -1) $sql.=' AND f.fk_user_author IS NULL';
else $sql.=' AND f.fk_user_author = '.$user->id; else $sql.=' AND f.fk_user_author = '.$userid;
} }
if ($_GET['filtre']) if ($_GET['filtre'])
{ {