Pman.php
authorAlan Knowles <alan@roojs.com>
Fri, 16 Nov 2018 07:07:14 +0000 (15:07 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 Nov 2018 07:07:14 +0000 (15:07 +0800)
Pman.php

index ce2a088..b2573b4 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -246,7 +246,9 @@ class Pman extends HTML_FlexyFramework_Page
         if (!is_a($this->company, 'DB_DataObject')) { // non-core pman projects
             return false; 
         }
-        $this->company->get('comptype', 'OWNER');
+        $e = DB_DataObject::Factory('core_enum')->lookupObject('COMPTYPE', 'OWNER');
+
+        $this->company->get('comptype_id', $e->id);
         return $this->company;
     }