Page MenuHomeIn-Portal Phabricator

D333.id826.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 6:17 AM

D333.id826.diff

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);
}
/**

Event Timeline