Page MenuHomeIn-Portal Phabricator

D333.id.diff
No OneTemporary

File Metadata

Created
Sat, Jun 28, 7:19 PM

D333.id.diff

Index: branches/5.2.x/core/kernel/db/dbitem.php
===================================================================
--- branches/5.2.x/core/kernel/db/dbitem.php
+++ branches/5.2.x/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);
}
/**

Event Timeline