diff --git a/application/utils.inc.php b/application/utils.inc.php index d427a074f..c11dd2ee2 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -3205,9 +3205,4 @@ HTML; { return in_array($sTrait, self::TraitsUsedByClass($sClass, true)); } - - public static function GetUniqId() - { - return hash('sha256', uniqid(sprintf('%x', rand()), true).sprintf('%x', rand())); - } } diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 0c7e1fa3b..915aed349 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -131,15 +131,15 @@ class Config ], 'event_service.debug.filter_events' => [ 'type' => 'array', - 'description' => 'Filter Event Service debug by events', - 'default' => '', + 'description' => 'List of events name to filter Event Service debug messages', + 'default' => [], 'value' => '', 'source_of_value' => '', 'show_in_conf_sample' => false, ], 'event_service.debug.filter_sources' => [ 'type' => 'array', - 'description' => 'Filter Event Service debug by event sources', + 'description' => 'List of event sources to filter Event Service debug messages', 'default' => '', 'value' => '', 'source_of_value' => '', diff --git a/core/dbobject.class.php b/core/dbobject.class.php index b90b0ca7e..30ff1c452 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -180,7 +180,7 @@ abstract class DBObject implements iDisplay $this->m_bFullyLoaded = $this->IsFullyLoaded(); $this->m_aTouchedAtt = array(); $this->m_aModifiedAtt = array(); - $this->m_sObjectUniqId = get_class($this).'::'.$this->GetKey().'_'.utils::GetUniqId(); + $this->m_sObjectUniqId = get_class($this).'::'.$this->GetKey().'_'.uniqId('', true); $this->RegisterEventListeners(); return; } @@ -203,7 +203,7 @@ abstract class DBObject implements iDisplay $this->UpdateMetaAttributes(); - $this->m_sObjectUniqId = get_class($this).'::0'.'_'.utils::GetUniqId(); + $this->m_sObjectUniqId = get_class($this).'::0'.'_'.uniqId('', true); $this->RegisterEventListeners(); }