Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1047122
D516.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
Sun, Jun 29, 6:16 PM
Size
969 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 6:16 PM (30 m, 24 s)
Engine
blob
Format
Raw Data
Handle
676987
Attached To
D516: INP-1905 - Clear the "Temp Mode" flag after the Temp Table removal from the "OnCancelEdit" event
D516.id.diff
View Options
Index: core/kernel/db/db_event_handler.php
===================================================================
--- core/kernel/db/db_event_handler.php
+++ core/kernel/db/db_event_handler.php
@@ -1981,7 +1981,7 @@
$event->SetRedirectParam('opener', 'u');
$this->Application->RemoveVar($event->getPrefixSpecial() . '_modified');
- // all temp tables are deleted here => all after hooks should think, that it's live mode now
+ // All temp tables are deleted here => all after hooks should think that it's live mode now.
$this->Application->SetVar($event->Prefix . '_mode', '');
}
@@ -2026,6 +2026,9 @@
$change_log_helper = $this->Application->recallObject('ChangeLogHelper');
$change_log_helper->forgetChanges($this->Prefix);
+ // All temp tables are deleted here => all after hooks should think that it's live mode now.
+ $this->Application->SetVar($event->Prefix . '_mode', '');
+
$event->SetRedirectParam('opener', 'u');
}
Event Timeline
Log In to Comment