#13376 fixed report

This commit is contained in:
Daniel Cebrian 2024-04-08 18:02:03 +02:00
parent ad78d1632e
commit 1ef2c5a1e9
2 changed files with 4 additions and 3 deletions

View File

@ -3352,8 +3352,8 @@ function reporting_inventory($report, $content, $type)
$date, $date,
'', '',
false, false,
'csv',
false, false,
'csv',
'', '',
[], [],
$inventory_regular_expression $inventory_regular_expression
@ -3367,12 +3367,13 @@ function reporting_inventory($report, $content, $type)
$date, $date,
'', '',
false, false,
'hash',
false, false,
'hash',
'', '',
[], [],
$inventory_regular_expression $inventory_regular_expression
); );
break; break;
} }

View File

@ -2644,7 +2644,7 @@ function reporting_html_inventory($table, $item, $pdf=0)
} else { } else {
// Grouped type inventory. // Grouped type inventory.
$type_modules = array_reduce( $type_modules = array_reduce(
$item['data'], ($item['data'] ?? []),
function ($carry, $it) { function ($carry, $it) {
$carry[$it['name']][] = $it; $carry[$it['name']][] = $it;
return $carry; return $carry;