Fixed bug to change the event status in modal window - #4309
This commit is contained in:
parent
bfb7897149
commit
1f8e143963
|
@ -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'];
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue