mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#13246 added change status for group events
This commit is contained in:
parent
549a39dce3
commit
c0b217e79a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user