crm calls this and get's the wrong user.
authorAlan Knowles <alan@roojs.com>
Thu, 27 Jun 2019 02:22:09 +0000 (10:22 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 27 Jun 2019 02:22:09 +0000 (10:22 +0800)
DataObjects/Core_person.php

index a11f1bd..171e7e6 100644 (file)
@@ -56,7 +56,8 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
  
     function owner()
     {
-        $p = DB_DataObject::Factory($this->tableName());
+        // this might be a Person in some old code? 
+        $p = DB_DataObject::Factory('core_person');
         $p->get($this->owner_id);
         return $p;
     }