Page MenuHomeIn-Portal Phabricator

D516.id.diff
No OneTemporary

File Metadata

Created
Sun, Jun 29, 6:16 PM

D516.id.diff

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