Page MenuHomeIn-Portal Phabricator

D516.id1382.diff
No OneTemporary

File Metadata

Created
Tue, Sep 23, 12:57 PM

D516.id1382.diff

Index: branches/5.2.x/core/kernel/db/db_event_handler.php
===================================================================
--- branches/5.2.x/core/kernel/db/db_event_handler.php
+++ branches/5.2.x/core/kernel/db/db_event_handler.php
@@ -1994,7 +1994,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', '');
}
@@ -2039,6 +2039,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