[ bug #806 ] Tasks are ordered alphabetically instead of chronological order

This commit is contained in:
Christophe Battarel 2013-05-23 22:51:27 +02:00
parent 992600664e
commit b96bff4770

View File

@ -519,7 +519,7 @@ class Task extends CommonObject
if ($projectid) $sql.= " AND p.rowid in (".$projectid.")";
}
if ($filteronprojref) $sql.= " AND p.ref LIKE '%".$filteronprojref."%'";
$sql.= " ORDER BY p.ref, t.rang, t.label";
$sql.= " ORDER BY p.ref, t.rang, t.datec";
//print $sql;
dol_syslog(get_class($this)."::getTasksArray sql=".$sql, LOG_DEBUG);