DataObjects/Projects.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 25 Feb 2011 08:34:36 +0000 (16:34 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 25 Feb 2011 08:34:36 +0000 (16:34 +0800)
DataObjects/Projects.php

index e9fa870..a57e5e7 100644 (file)
@@ -172,6 +172,17 @@ class Pman_Core_DataObjects_Projects extends DB_DataObject
             $this->client_id = $au->company()->id; // can see nothing!!!
             
         }
+        
+        if (!empty($_REQUEST['query']['project_member_of'])) {
+            $this->whereAdd('id IN (
+                SELECT person_id from 
+                    ProjectDirectory 
+                WHERE project_id = ' . ((int) $_REQUEST['query']['project_member_of']) .')');
+            
+            
+        }
+        
+