mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Recovered event criticity field from event alert
Former-commit-id: e59764a9cf5eec411f6f5e28d306444273d9f89c
This commit is contained in:
parent
0173c856af
commit
0f35923073
@ -68,10 +68,6 @@ if (is_ajax()) {
|
|||||||
|
|
||||||
$fields_rows = [];
|
$fields_rows = [];
|
||||||
for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
|
for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
|
||||||
if (($i == 5) && ($command['id'] == 3)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$field_description = $fields_descriptions[($i - 1)];
|
$field_description = $fields_descriptions[($i - 1)];
|
||||||
$field_value = $fields_values[($i - 1)];
|
$field_value = $fields_values[($i - 1)];
|
||||||
$field_hidden = $fields_hidden_checked[($i - 1)];
|
$field_hidden = $fields_hidden_checked[($i - 1)];
|
||||||
@ -255,10 +251,6 @@ if (is_ajax()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If command is PandoraFMS event, field 5 must be empty because "severity" must be set by the alert.
|
// If command is PandoraFMS event, field 5 must be empty because "severity" must be set by the alert.
|
||||||
if ($command['id'] == 3) {
|
|
||||||
$fields_rows[5] = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$command['fields_rows'] = $fields_rows;
|
$command['fields_rows'] = $fields_rows;
|
||||||
|
|
||||||
echo json_encode($command);
|
echo json_encode($command);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user