diff --git a/ChangeLog b/ChangeLog index 0f4b84f464d..05bb21a8c8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ For users: - Fix: Category of a bank transaction was not saved. - Fix: Clicktodial plugin works correctly now - Fix: Multiprices features works correctly. +- Fix: Project module and task creation. For translators: - Added ca_ES language files diff --git a/htdocs/project.class.php b/htdocs/project.class.php index e189564e6c5..34415c01723 100644 --- a/htdocs/project.class.php +++ b/htdocs/project.class.php @@ -425,12 +425,12 @@ class Project extends CommonObject /* List of tasks */ - $sql = "SELECT p.rowid as projectid, p.ref, p.title,"; + $sql = "SELECT p.rowid as projectid, p.ref, p.title as ptitle,"; $sql.= " t.rowid, t.title, t.fk_task_parent, t.duration_effective"; $sql.= " FROM ".MAIN_DB_PREFIX."projet as p"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."projet_task as t on t.fk_projet = p.rowid"; if ($this->id) $sql .= " WHERE t.fk_projet =".$this->id; - $sql.= " ORDER BY p.ref, t.fk_task_parent"; + $sql.= " ORDER BY p.ref, t.title"; dolibarr_syslog("Project::getTasksArray sql=".$sql); $resql = $this->db->query($sql);