diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 93c0e6cf7f0..26cdeec151c 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -398,7 +398,7 @@ class Project extends CommonObject * @param string $datefieldname name of table associated of the type * @param string $dates Start date (at 00:00:00) * @param string $datee End date (at 23:00:00) - * @return mixed List of orders linked to project, < 0 or string if error + * @return mixed Array list of object ids linked to project, < 0 or string if error */ function get_element_list($type, $tablename, $datefieldname='', $dates='', $datee='') { diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 2e447e15568..cf9ccbcc4ce 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -272,6 +272,8 @@ foreach ($listofreferent as $key => $value) if ($qualified) { + $element = new $classname($db); + if (! $showdatefilter) { print '