Merge branch 'ent-11626-la-visualizacion-del-detalle-de-una-alerta-no-muestra-bien-las-acciones' into 'develop'

Ent 11626 la visualizacion del detalle de una alerta no muestra bien las acciones

See merge request artica/pandorafms!6149
This commit is contained in:
Gorka Sanchez 2023-07-06 09:40:43 +00:00
commit c97d5ae717
1 changed files with 16 additions and 3 deletions

View File

@ -326,9 +326,22 @@ if (count($actions) == 1 && isset($actions[0])) {
}
foreach ($action['escalation'] as $k => $v) {
if (count($table->head) >= count($action['escalation'])) {
if ($k === count($action['escalation'])) {
if ($k === 1) {
if ($v > 0) {
$table->data[$kaction][$k] .= html_print_image(
'images/tick.png',
true,
['class' => 'invert_filter']
);
} else {
$table->data[$kaction][$k] = html_print_image(
'images/blade.png',
true
);
}
if (count($table->head) <= count($action['escalation'])) {
if ($k == count($action['escalation'])) {
if ($k == 1) {
$table->head[$kaction] = __('Every time that the alert is fired');
} else {
$table->head[$kaction] = '>#'.($kaction - 1);