From e18abef970324609a1b81068cf6ab3740a19dff7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 22 May 2010 14:18:51 +0000 Subject: [PATCH] Add start and end date into return array that list tasks --- htdocs/projet/class/task.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 0d8626c3e5b..2cbbae9d386 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -465,8 +465,9 @@ class Task extends CommonObject //print $usert.'-'.$userp.'-'.$projectid.'-'.$socid.'-'.$mode.'
'; // List of tasks (does not care about permissions. Filtering will be done later) - $sql = "SELECT p.rowid as projectid, p.ref, p.title as plabel, p.public"; - $sql.= ", t.rowid as taskid, t.label, t.fk_task_parent, t.duration_effective, t.progress"; + $sql = "SELECT p.rowid as projectid, p.ref, p.title as plabel, p.public,"; + $sql.= " t.rowid as taskid, t.label, t.fk_task_parent, t.duration_effective, t.progress,"; + $sql.= " t.dateo as date_start, t.datee as date_end"; if ($mode == 0) { $sql.= " FROM ".MAIN_DB_PREFIX."projet as p"; @@ -528,6 +529,8 @@ class Task extends CommonObject $tasks[$i]->duration = $obj->duration_effective; $tasks[$i]->progress = $obj->progress; $tasks[$i]->public = $obj->public; + $tasks[$i]->date_start = $this->db->jdate($obj->date_start); + $tasks[$i]->date_end = $this->db->jdate($obj->date_end); } $i++;