Fix: Not complete list
This commit is contained in:
parent
e70162e8bb
commit
fa0d62a959
@ -318,8 +318,8 @@ if ($filtera > 0 || $filtert > 0 || $filterd > 0)
|
|||||||
if ($filterd > 0) $sql.= ($filtera>0||$filtert>0?" OR ":"")." a.fk_user_done = ".$filterd;
|
if ($filterd > 0) $sql.= ($filtera>0||$filtert>0?" OR ":"")." a.fk_user_done = ".$filterd;
|
||||||
$sql.= ")";
|
$sql.= ")";
|
||||||
}
|
}
|
||||||
if ($status == 'done') { $sql.= " AND a.percent = 100"; }
|
if ($status == 'done') { $sql.= " AND (a.percent = 100 OR (a.percent = -1 AND a.datep2 <= '".$db->idate($now)."'))"; }
|
||||||
if ($status == 'todo') { $sql.= " AND a.percent < 100"; }
|
if ($status == 'todo') { $sql.= " AND ((a.percent >= 0 AND a.percent < 100) OR (a.percent = -1 AND a.datep2 > '".$db->idate($now)."'))"; }
|
||||||
// Sort on date
|
// Sort on date
|
||||||
$sql.= ' ORDER BY datep';
|
$sql.= ' ORDER BY datep';
|
||||||
//print $sql;
|
//print $sql;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user