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:
commit
c97d5ae717
|
@ -326,9 +326,22 @@ if (count($actions) == 1 && isset($actions[0])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($action['escalation'] as $k => $v) {
|
foreach ($action['escalation'] as $k => $v) {
|
||||||
if (count($table->head) >= count($action['escalation'])) {
|
if ($v > 0) {
|
||||||
if ($k === count($action['escalation'])) {
|
$table->data[$kaction][$k] .= html_print_image(
|
||||||
if ($k === 1) {
|
'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');
|
$table->head[$kaction] = __('Every time that the alert is fired');
|
||||||
} else {
|
} else {
|
||||||
$table->head[$kaction] = '>#'.($kaction - 1);
|
$table->head[$kaction] = '>#'.($kaction - 1);
|
||||||
|
|
Loading…
Reference in New Issue