mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-01 11:04:55 +02:00
Merge branch 'ent-12128-en-alert-details-no-se-muestra-el-nombre-de-la-accion-correspondiente-a-la-alerta-al-usar' into 'develop'
Ent 12128 en alert details no se muestra el nombre de la accion correspondiente a la alerta al usar See merge request artica/pandorafms!6802
This commit is contained in:
commit
574db2befe
@ -308,6 +308,7 @@ $table->head[0] = __('Actions');
|
|||||||
$table->style[0] = 'font-weight: bold; text-align: left;';
|
$table->style[0] = 'font-weight: bold; text-align: left;';
|
||||||
|
|
||||||
if (count($actions) == 1 && isset($actions[0])) {
|
if (count($actions) == 1 && isset($actions[0])) {
|
||||||
|
if (!empty($actions[0]['name'])) {
|
||||||
$table->head[1] = __('Every time that the alert is fired');
|
$table->head[1] = __('Every time that the alert is fired');
|
||||||
$table->data[0][0] = $actions[0]['name'];
|
$table->data[0][0] = $actions[0]['name'];
|
||||||
$table->data[0][1] = html_print_image(
|
$table->data[0][1] = html_print_image(
|
||||||
@ -315,6 +316,10 @@ if (count($actions) == 1 && isset($actions[0])) {
|
|||||||
true,
|
true,
|
||||||
['class' => 'invert_filter']
|
['class' => 'invert_filter']
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$table->colspan[0] = 2;
|
||||||
|
$table->data[0] = __('No action defined.');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($actions as $kaction => $action) {
|
foreach ($actions as $kaction => $action) {
|
||||||
$table->data[$kaction][0] = $action['name'];
|
$table->data[$kaction][0] = $action['name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user