#13246 added change status for group events

This commit is contained in:
Daniel Cebrian 2024-04-30 14:59:35 +02:00
parent 549a39dce3
commit c0b217e79a

View File

@ -1561,19 +1561,11 @@ if ($change_status === true) {
$node->connect(); $node->connect();
} }
if ($group_rep !== 3) {
$return = events_change_status(
explode(',', $event_ids),
$new_status
);
} else {
// Update all elements with same extraid.
$return = events_update_status( $return = events_update_status(
$event_ids, $event_ids,
(int) $new_status, (int) $new_status,
['group_rep' => $group_rep] ['group_rep' => $group_rep]
); );
}
} catch (\Exception $e) { } catch (\Exception $e) {
// Unexistent agent. // Unexistent agent.
if (is_metaconsole() === true if (is_metaconsole() === true