DataObjects/Core_notify.php
authorAlan Knowles <alan@roojs.com>
Mon, 9 Jul 2012 07:47:18 +0000 (15:47 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 9 Jul 2012 07:47:18 +0000 (15:47 +0800)
DataObjects/Core_notify.php

index fbc58bf..d6415f4 100644 (file)
@@ -122,10 +122,16 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
     
     function applyFilters($q, $au, $roo)
     {
-        if (isset($q['ontable'])) {
+        if (isset($q['ontable']) && !in_array($q['ontable'], array('Person', 'Events' . 'core_watch')) {
+            // this will only work on tables not joined to ours.
+            
+            
             // then we can build a join..
             $d = DB_DataObject::Factory($q['ontable']);
             $d->autoJoin();
+            $this->selectAdd($d->data_select);
+            
+            $this->_join .= $d->join; 
             echo '<PRE>';print_R($d);
             exit;