diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index 0d29cf77..9b21168d 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -988,6 +988,10 @@ abstract class DbObject $logId = $id; } + if ($logId === null && $this->autoincKeyName) { + $logId = $this->getAutoincId(); + } + return $logId; }