Index: branches/5.1.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r13581 -r13750 --- branches/5.1.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 13581) +++ branches/5.1.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 13750) @@ -1,6 +1,6 @@ clone mapping for dual ForeignKey updating $this->AlreadyProcessed[$master['TableName']][$id] = $object->GetId(); } - if ($object->mode == 't') { - $object->setTempID(); - } + if ($mode == 'create') { $this->RaiseEvent('OnAfterClone', $master['Prefix'], $special, Array($object->GetId()), $foreign_key, array('original_id' => $id) ); $this->saveID($master['Prefix'], $special, $object->GetID());