X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.php;h=b2573b4f9e8cfe5ddfd3b00c9428c277be6d84b0;hb=26cede6749746ad5a90d31ee0836ce28af25c7d0;hp=ce2a0889830c6adeabf2e978426fd004ffd74072;hpb=adebad37e182485154c727b528eaac81531e9e29;p=Pman.Base diff --git a/Pman.php b/Pman.php index ce2a088..b2573b4 100644 --- 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; }