From e3fa68aef69848565ad832f03fabb2562afc374c Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 16 Jun 2020 10:03:22 +0200 Subject: [PATCH] Correct event get for metaconsole --- pandora_console/include/functions_api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index c64059523f..15af117305 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -10740,7 +10740,7 @@ function get_events_with_user($trash1, $trash2, $other, $returnType, $user_in_db function api_set_event($id_event, $unused1, $params, $unused2, $unused3) { // Get the event - $event = events_get_event($id_event); + $event = events_get_event($id_event, false, is_metaconsole()); // If event not exists, end the execution. if ($event === false) { returnError( @@ -10773,6 +10773,7 @@ function api_set_event($id_event, $unused1, $params, $unused2, $unused3) } } + // In meta or node. if (is_metaconsole() === true) { $table = 'tmetaconsole_event'; } else {