Index: core/kernel/db/dbitem.php =================================================================== --- core/kernel/db/dbitem.php +++ core/kernel/db/dbitem.php @@ -1168,6 +1168,13 @@ } $this->SetID($new_id); + $pending_actions = $this->getPendingActions(0); + + foreach ( array_keys($pending_actions) as $key ) { + $pending_actions[$key]['id'] = $new_id; + } + + $this->setPendingActions($pending_actions, $new_id); } /**