Fixed bug to change the event status in modal window - #4309

This commit is contained in:
Tatiana Llorente 2019-07-10 13:04:06 +02:00
parent bfb7897149
commit 1f8e143963
2 changed files with 4 additions and 5 deletions

View File

@ -1139,6 +1139,7 @@ if ($get_extended_event) {
$dialog_page = get_parameter('dialog_page', 'general');
$filter = get_parameter('filter', []);
$similar_ids = get_parameter('similar_ids', $event_id);
$group_rep = $filter['group_rep'];
$event_rep = $event['event_rep'];
$timestamp_first = $event['min_timestamp'];
@ -1146,6 +1147,8 @@ if ($get_extended_event) {
$server_id = $event['server_id'];
$comments = $event['comments'];
$event['similar_ids'] = $similar_ids;
if (!isset($comments)) {
$comments = $event['user_comment'];
}

View File

@ -464,14 +464,10 @@ function event_change_status(event_ids) {
if ($("#notification_status_error").length) {
$("#notification_status_error").hide();
}
console.log(data);
if (data == "status_ok") {
dt_events.draw(false);
$("#notification_status_success").show();
$("#extended_event_general_page table td.general_status").text(
new_status
);
} else {
$("#notification_status_error").show();
}