function currentProject()
{
+ // we do need the option for me to look at all projects...
+
$p = DB_DataObject::factory('Projects');
$ar = array();
if ($this->authUser) {
$this->elements['active_project_id'] = new HTML_Template_Flexy_Element();
$this->elements['active_project_id']->setOptions($ar);
- if (empty($_SESSION[__CLASS__]['active_project_id']) ||
- !isset($ar[$_SESSION[__CLASS__]['active_project_id']]))
- {
- $p = DB_DataObject::factory('Projects');
-
- $p->get('code', '*PUBLIC');
- $_SESSION[__CLASS__]['active_project_id'] = $p->id;
- }
+
$this->elements['active_project_id']->setValue( $_SESSION[__CLASS__]['active_project_id']);