}
+ $pd = DB_DataObject::factory('ProjectDirectory');
+ $pd->project_id = $this->currentProject();
+ $pd->whereAdd("ProjectDirectory.role != ''");
+ $pd->joinAdd(DB_DataObject::factory('Person'), 'LEFT');
+ $pd->selectAdd();
+ $pd->selectAdd("distinct(Person.id) as id , CONCAT(Person.name , '<', Person.email , '>') as name");
+ $pd->groupBy('Person.id, Person.name');
+ $pd->orderBy('Person.name');
+ $users = $pd->fetchAll('id', 'name');
+
+
+ //$users = array();
+
+ $this->elements['owner_id'] = new HTML_Template_Flexy_Element('select');
+ $this->elements['owner_id']->setOptions($users);
+
+ $this->elements['developer_id'] = new HTML_Template_Flexy_Element('select');
+ $this->elements['developer_id']->setOptions($users);
+
+
+
+
if (false && $this->currentProject()) {
$d = DB_DataObject::factory('mtrack_project_component');
$d->project_id = $this->currentProject();