Index: core/kernel/db/dbitem.php =================================================================== --- core/kernel/db/dbitem.php +++ core/kernel/db/dbitem.php @@ -1167,7 +1167,15 @@ $this->Application->StoreVar($ses_var_name, serialize($changes)); } + $old_id = $this->GetID(); $this->SetID($new_id); + $pending_actions = $this->getPendingActions($old_id); + + foreach ( array_keys($pending_actions) as $key ) { + $pending_actions[$key]['id'] = $new_id; + } + + $this->setPendingActions($pending_actions, $new_id); } /**