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

index ed53630..9403a73 100644 (file)
@@ -74,10 +74,15 @@ class MTrackWeb extends HTML_FlexyFramework_Page
          
     }
     
-    function currentProject()
+    function currentProject($val = false)
     {
         // we do need the option for me to look at all projects...
         
+        if ($val !== false) {
+            // attempt to set it..
+            $_SESSION[__CLASS__]['active_project_id'] = $val ;
+        }
+        
         $p = DB_DataObject::factory('Projects');
         $ar = array();
         if ($this->authUser) {