From 8b6b573bde71eaa6b195163059e734fe8909d0fa Mon Sep 17 00:00:00 2001 From: marcos Date: Wed, 21 Oct 2020 16:18:07 +0200 Subject: [PATCH] fixed error with value status field --- pandora_console/operation/events/events.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 3ca4123b4f..196db1576e 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -1935,16 +1935,21 @@ function process_datatables_item(item) { /* Status */ img = ' __('Unknown'), 'class' => 'forced-title']); ?>'; + state = '0'; switch (item.estado) { case "": img = ' __('New event'), 'class' => 'forced-title']); ?>'; break; case "": + + state = '1'; img = ' __('Event validated'), 'class' => 'forced-title']); ?>'; break; case "": + state = '2'; + img = ' __('Event in process'), 'class' => 'forced-title']); ?>'; break; } @@ -1976,6 +1981,9 @@ function process_datatables_item(item) { } item.estado = '
'; + item.estado += ''; + item.estado += state; + item.estado += ''; item.estado += img; item.estado += '
';