From a6936f16d509445875f7e8af23b5f22e4acf1ef4 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Thu, 15 Apr 2021 15:50:10 +0200 Subject: [PATCH] Cleaned event create control for centralized management --- pandora_console/include/lib/Event.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pandora_console/include/lib/Event.php b/pandora_console/include/lib/Event.php index 9fca537463..e09b4ace20 100644 --- a/pandora_console/include/lib/Event.php +++ b/pandora_console/include/lib/Event.php @@ -182,20 +182,9 @@ class Event extends Entity */ public function save() { - global $config; - - if (is_metaconsole() === false && isset($config['centralized_management']) === true - && (bool) $config['centralized_management'] === true - ) { - throw new \Exception( - 'error, cannot save in centralized management environment.' - ); - } - $values = $this->fields; // Clean null fields. foreach ($values as $k => $v) { - hd('"'.$k.'" "'.$v.'"', true); if ($v === null) { unset($values[$k]); }