Index: branches/5.0.x/core/kernel/db/dbitem.php =================================================================== diff -u -N -r13537 -r13573 --- branches/5.0.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 13537) +++ branches/5.0.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 13573) @@ -1,6 +1,6 @@ OriginalFieldValues = $this->FieldValues; + $insert_id = $this->Conn->getInsertID(); if ($insert_id == 0) { // insert into temp table (id is not auto-increment field)