Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046460
D333.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 28, 7:19 PM
Size
593 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:19 PM (6 h, 1 m)
Engine
blob
Format
Raw Data
Handle
676315
Attached To
D333: INP-1733 Remove ".tmp" sub-extension from sub-item uploaded files
D333.id.diff
View Options
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
Log In to Comment