MTrackWeb.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 06:26:18 +0000 (14:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 06:26:18 +0000 (14:26 +0800)
MTrackWeb.php

index 3f2d2aa..f189564 100644 (file)
@@ -104,7 +104,9 @@ class MTrackWeb extends HTML_FlexyFramework_Page
             $p = DB_DataObject::factory('Projects');
              
             $p->get('code', '*PUBLIC');
+            
             $_SESSION[__CLASS__]['active_project_id'] = $p->id;
+            $currentProject = $_SESSION[__CLASS__]['active_project_id'];
             return $p->id; // always allowed..
         }
         $currentProject = $_SESSION[__CLASS__]['active_project_id'];