tasks_id_sprints = $GLOBALS['phpgw']->db; $this->tasks_owner = $GLOBALS['phpgw']->db; $this->tasks_title = $GLOBALS['phpgw']->db; $this->tasks_subtitle = $GLOBALS['phpgw']->db; $this->tasks_description = $GLOBALS['phpgw']->db; $this->tasks_status = $GLOBALS['phpgw']->db; $this->tasks = $GLOBALS['phpgw']->db; $this->tasks_sprints = $GLOBALS['phpgw']->db; $list = new ldap_functions(); $this->tasks->query('SELECT tasks_id_owner, tasks_title, tasks_description, tasks_status, sprints_name FROM phpgw_agile_tasks, phpgw_agile_sprints WHERE sprints_id=tasks_id_sprints AND tasks_id_proj='.$projId.' GROUP BY tasks_id_owner, tasks_title, tasks_description, tasks_status, sprints_name',__LINE__,__FILE__); if($this->tasks->num_rows()){ $i=0; while($this->tasks->next_record()) { $this->tasksElements['tasks_sprints'][$i] = $this->tasks->f('sprints_name'); $this->tasksElements['tasks_owner'][$i] = $list->uidnumber2cn($this->tasks->f('tasks_id_owner')); $this->tasksElements['tasks_title'][$i] = $this->tasks->f('tasks_title'); $this->tasksElements['tasks_description'][$i] = $this->tasks->f('tasks_description'); $this->tasksElements['tasks_status'][$i] = $this->tasks->f('tasks_status'); $i++; } } } }