Ent 5473 report template inventory
This commit is contained in:
parent
c6c9b63338
commit
28da2b9afb
|
@ -471,7 +471,7 @@ foreach ($items as $item) {
|
|||
if ($is_inventory_item) {
|
||||
$external_source = json_decode($item['external_source'], true);
|
||||
$agents = $external_source['id_agents'];
|
||||
$modules = $external_source['inventory_modules'];
|
||||
$modules = io_safe_output($external_source['inventory_modules']);
|
||||
|
||||
$agent_name_db = [];
|
||||
foreach ($agents as $a) {
|
||||
|
|
|
@ -160,7 +160,7 @@ function reporting_make_reporting_data(
|
|||
|
||||
$return = [];
|
||||
if (!empty($report)) {
|
||||
$contents = $report['contents'];
|
||||
$contents = io_safe_output($report['contents']);
|
||||
} else {
|
||||
$report = io_safe_output(db_get_row('treport', 'id_report', $id_report));
|
||||
$contents = io_safe_output(
|
||||
|
@ -2236,7 +2236,7 @@ function reporting_inventory($report, $content, $type)
|
|||
$es = json_decode($content['external_source'], true);
|
||||
|
||||
$id_agent = $es['id_agents'];
|
||||
$module_name = $es['inventory_modules'];
|
||||
$module_name = io_safe_input($es['inventory_modules']);
|
||||
if (empty($module_name)) {
|
||||
$module_name = [0 => 0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue