DataObjects/Projects.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 20 Sep 2011 10:21:00 +0000 (18:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 20 Sep 2011 10:21:00 +0000 (18:21 +0800)
DataObjects/Projects.php

index c7e1ff7..39af207 100644 (file)
@@ -157,24 +157,6 @@ class Pman_Core_DataObjects_Projects extends DB_DataObject
         
         // this is clipping related..  -- we should have an API for addons like this.. (and docs)
         
-        if ($au->company()->comptype == 'SUPPLIER') {
-            $pr = DB_DataObject::factory('CampaignAssign');
-            $pr->supplier_id = $au->company_id;
-            $prjs = $pr->fetchAll('project_id');
-             if (count($prjs)) {
-                $this->whereAdd("
-                     (Projects.id IN (".implode(',', $prjs).")) 
-                ");
-            }  else {
-                $this->whereAdd("1=0"); // can see nothing!!!
-            }
-        }
-        
-        
-        if ($au->company()->comptype == 'CLIENT') {
-            $this->client_id = $au->company()->id; // can see nothing!!!
-            
-        }