DataObjects/Events.php
authorEdward <edward@roojs.com>
Tue, 28 Apr 2015 07:41:22 +0000 (15:41 +0800)
committerEdward <edward@roojs.com>
Tue, 28 Apr 2015 07:41:22 +0000 (15:41 +0800)
DataObjects/Events.php

index 507dd4d..d1cbbac 100644 (file)
@@ -307,7 +307,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             $this->person_id = 0;
         } else {
             $col = $au->tableName() == "Person" ? 'person_id' : $au->tableName() . '_id';
-            $this->{$col} = $au->id;
+            $this->{$col} = $au->pid();
             //$this->person_id = $au ? (!empty($au->id) ? $au->id : $au->pid()) : -1;
         }
         $this->person_table = $au ? $au->tableName() : '';