diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 7fad691c74..a5b442d69c 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -633,6 +633,14 @@ function events_update_status($id_evento, $status, $filter=null, $history=false) break; case EVENT_STATUS_VALIDATED: + events_change_owner( + $id_evento, + $config['id_user'], + false, + is_metaconsole() ? true : false, + $history + ); + $status_string = 'Validated'; break; @@ -1870,6 +1878,16 @@ function events_change_status( return false; } + if ($new_status == EVENT_STATUS_VALIDATED) { + events_change_owner( + $id_event, + $config['id_user'], + false, + $meta, + $history + ); + } + events_comment( $id_event, '',