From ee189564080ad7b67adf8933ade0bbad3da2bd9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 Feb 2012 11:51:35 +0100 Subject: [PATCH] Fix: Stats must be on user of card not creator --- htdocs/compta/deplacement/class/deplacementstats.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/deplacement/class/deplacementstats.class.php b/htdocs/compta/deplacement/class/deplacementstats.class.php index fe20cb0c0fd..51e940c78a3 100644 --- a/htdocs/compta/deplacement/class/deplacementstats.class.php +++ b/htdocs/compta/deplacement/class/deplacementstats.class.php @@ -68,7 +68,7 @@ class DeplacementStats extends Stats { $this->where.=" AND fk_soc = ".$this->socid; } - if ($this->userid > 0) $this->where.=' AND fk_user_author = '.$this->userid; + if ($this->userid > 0) $this->where.=' AND fk_user = '.$this->userid; }