mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#9771 change json format in summary
This commit is contained in:
parent
cdffdd5995
commit
58a52ff450
@ -1470,6 +1470,7 @@ class DiscoveryTaskList extends HTML
|
||||
continue;
|
||||
}
|
||||
|
||||
$unknownJson = [];
|
||||
foreach ($summary as $k2 => $v) {
|
||||
if (is_array($v) === true) {
|
||||
if ($k2 === 'summary') {
|
||||
@ -1488,8 +1489,11 @@ class DiscoveryTaskList extends HTML
|
||||
$table->data[$i][0] = $v;
|
||||
$table->data[$i][1] = '';
|
||||
$i++;
|
||||
} else if ($k2 !== array_key_last($summary)) {
|
||||
$unknownJson = array_merge($unknownJson, [$k2 => $v]);
|
||||
} else {
|
||||
$table->data[$i][0] = json_encode([$k2 => $v], JSON_PRETTY_PRINT);
|
||||
$unknownJson = array_merge($unknownJson, [$k2 => $v]);
|
||||
$table->data[$i][0] = json_encode($unknownJson, JSON_PRETTY_PRINT);
|
||||
$table->data[$i][1] = '';
|
||||
$i++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user