diff --git a/html/includes/common/alerts.inc.php b/html/includes/common/alerts.inc.php index f3adb045a0..184a3c2ab9 100644 --- a/html/includes/common/alerts.inc.php +++ b/html/includes/common/alerts.inc.php @@ -183,7 +183,7 @@ else { Severity Acknowledge'; if (is_numeric($proc)) { - if ($proc) { $common_output[] = 'Procedure'; } + if ($proc) { $common_output[] = 'Procedure'; } } $common_output[] = ' @@ -228,9 +228,9 @@ var alerts_grid = $("#alerts_'.$unique_id.'").bootgrid({ "ack": function(column,row) { return ""; }, - "proc": function(column,row) { - return ""; - } + "proc": function(column,row) { + return ""; + } }, templates: { } @@ -259,13 +259,13 @@ var alerts_grid = $("#alerts_'.$unique_id.'").bootgrid({ alerts_grid.find(".command-open-proc").on("click", function(e) { e.preventDefault(); var alert_id = $(this).data("alert_id"); - $.ajax({ + $.ajax({ type: "POST", url: "ajax_form.php", data: { type: "open-proc", alert_id: alert_id }, success: function(msg){ - if (msg != "ERROR") { window.open(msg); } - else { $("#message").html(\'
Procedure link does not seem to be valid, please check the rule.
\'); } + if (msg != "ERROR") { window.open(msg); } + else { $("#message").html(\'
Procedure link does not seem to be valid, please check the rule.
\'); } }, error: function(){ $("#message").html(\'
An error occurred opening procedure for this alert. Does the procedure link was configured ?
\'); diff --git a/html/includes/forms/parse-alert-rule.inc.php b/html/includes/forms/parse-alert-rule.inc.php index c4d066ac56..fde05bc83f 100644 --- a/html/includes/forms/parse-alert-rule.inc.php +++ b/html/includes/forms/parse-alert-rule.inc.php @@ -28,7 +28,7 @@ if (is_numeric($alert_id) && $alert_id > 0) { 'severity' => $rule['severity'], 'extra' => $rule['extra'], 'name' => $rule['name'], - 'proc' => $rule['proc'], + 'proc' => $rule['proc'], 'rules' => $rule_split, ); header('Content-type: application/json'); diff --git a/html/procs/noproc.pdf b/html/procs/noproc.pdf deleted file mode 100644 index 75897e1153..0000000000 Binary files a/html/procs/noproc.pdf and /dev/null differ