N°4756 - small adjustments

This commit is contained in:
Eric Espie
2022-09-23 15:08:34 +02:00
parent b9d865f881
commit 3196e105a1

View File

@@ -2353,8 +2353,9 @@ abstract class DBObject implements iDisplay
if ($bDoComputeValues) {
$this->DoComputeValues();
}
$this->DoCheckToWrite();
// Event before the legacy callback
$this->EventCheckToWrite(['error_messages' => &$this->m_aCheckIssues]);
$this->DoCheckToWrite();
$oKPI->ComputeStats('CheckToWrite', get_class($this));
if (count($this->m_aCheckIssues) == 0)
{
@@ -3198,8 +3199,6 @@ abstract class DBObject implements iDisplay
// Activate any existing trigger
$sClass = get_class($this);
// - TriggerOnObjectMention
$this->ActivateOnMentionTriggers(false);
$aHierarchicalKeys = array();
$aDBChanges = array();