X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=87b5a74ce6cfa1f63cc54f8c87e4debbe239e38d;hb=960e3f15f3e5b55365c4d382b8882d144f222592;hp=e95d0116eb70d0b1e19e5481700ba7c720bdc05b;hpb=5c914000b1d4e743675d4a7e302ca8721ad54200;p=Pman.Core diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index e95d0116..87b5a74c 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -135,7 +135,13 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject //DB_DAtaObject::DebugLevel(1); // then we can build a join.. $d = DB_DataObject::Factory($q['ontable']); - $d->autoJoin(); + $ji = $d->autoJoin(); + //print_R($jinfo); + // get cols + foreach($ji['cols'] as $cname=>$fname) { + $this->selectAdd($fname . ' as ontable_id_' . $cname ); + } + //$this->selectAdd($d->_query['data_select']); -- this will cause the same dataIndex... $this->_join .= " LEFT JOIN {$d->tableName()} ON {$this->tableName()}.onid = {$d->tableName()}.id