Index: branches/5.2.x/core/kernel/db/dbitem.php =================================================================== diff -u -N -r16513 -r16622 --- branches/5.2.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 16513) +++ branches/5.2.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 16622) @@ -1,6 +1,6 @@ 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); } /**