Fix: Debug project module

This commit is contained in:
Laurent Destailleur 2009-01-10 03:47:52 +00:00
parent 091d6987d4
commit 7f55e6d91e
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);