Fix: Missing condition on project

This commit is contained in:
Laurent Destailleur 2010-02-28 00:42:44 +00:00
parent dd97ad310b
commit 0686579e30

View File

@ -431,7 +431,7 @@ class Task extends CommonObject
}
/**
* Return list of task for all projects or a particular project
* Return list of task for all projects or for one particular project
* Sort order is on project, TODO then of position of task, and last on title of first level task
* @param usert Object user to limit task affected to a particular user
* @param userp Object user to limit projects of a particular user and public projects
@ -555,7 +555,7 @@ class Task extends CommonObject
if ($projectid)
{
if ($userp) $sql.= " AND pt.rowid = ".$projectid;
//if ($usert) $sql.= " AND pt.fk_projet = ".$projectid;
if ($usert) $sql.= " AND pt.fk_projet = ".$projectid;
}
if ($taskid)
{