#9261 Fixed 24X7 item

This commit is contained in:
Daniel Maya 2022-09-07 13:49:05 +02:00
parent 6bf2054d75
commit 08815cc2c2
2 changed files with 4 additions and 3 deletions

View File

@ -789,7 +789,7 @@ function agents_get_agents_selected($group)
);
$all = array_reduce(
$all,
(empty($all) === true) ? [] : $all,
function ($carry, $item) {
$carry[$item['id_agente']] = $item['alias'];
return $carry;

View File

@ -1756,7 +1756,8 @@ function reporting_html_modules_inventory($table, $item, $pdf=0)
} else if ($data_field_key === 'group_id') {
$column_value = groups_get_name($data_field_value[0]);
} else if ($data_field_key === 'sec_group_id') {
$sec_groups_names = array_map(function ($group_id) {
$sec_groups_names = array_map(
function ($group_id) {
return groups_get_name($group_id);
},
$data_field_value
@ -4224,7 +4225,7 @@ function reporting_html_availability($table, $item, $pdf=0)
} else {
$table_row[] = $row['agent'];
$item_name = $row['availability_item'];
if ((bool) $row['compare'] === true) {
if ((bool) $row['compare'] === false) {
$item_name .= ' ('.__('24 x 7').')';
}