DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 07:01:33 +0000 (15:01 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Oct 2016 07:01:33 +0000 (15:01 +0800)
DataObjects/Core_person.php

index b93c6c1..bdccdb0 100644 (file)
@@ -425,7 +425,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             $u->id = -1;
             
             // if a company has been created fill that in in company_id_id
-            $c = DB_DAtaObject::factory('Companies')->lookupOwner();
+            $c = DB_DAtaObject::factory('core_company')->lookupOwner();
             if ($c) {
                 $u->company_id_id = $c->pid();
                 $u->company_id = $c->pid();