DataObjects/Core_notify.php
[Pman.Core] / DataObjects / Core_notify.php
index fd7ece8..3b174ed 100644 (file)
@@ -136,9 +136,11 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             // then we can build a join..
             $d = DB_DataObject::Factory($q['ontable']);
             $ji = $d->autoJoin();
-            //print_R($jinfo);
+            //echo '<PRE>';print_R($ji);
             // get cols
-            
+            foreach($ji['join_names'] as $cname=>$fname) {
+                 $this->selectAdd($fname . ' as ontable_id_' . $cname );
+            }
             
             //$this->selectAdd($d->_query['data_select']); -- this will cause the same dataIndex...
             $this->_join .= "