Fix: Missing condition on project
This commit is contained in:
parent
dd97ad310b
commit
0686579e30
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user