From: Alan Knowles Date: Thu, 27 Jun 2019 02:22:09 +0000 (+0800) Subject: crm calls this and get's the wrong user. X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1f319953bad119d48a8d27467e181d637c1b57e4 crm calls this and get's the wrong user. --- diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index a11f1bd5..171e7e60 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -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; }