chg: [behavior:analystDataParent] Prevent double nesting analyst data when bulk fetching

pull/9700/head
Sami Mokaddem 2024-04-22 09:42:28 +02:00
parent 051153b0c6
commit 68c68febda
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class AnalystDataParentBehavior extends ModelBehavior
if (!empty($temp)) {
foreach ($chunked_objects as $k => $object) {
if (!empty($temp[$object['uuid']])) {
$objects[$chunk][$k][$type][] = $temp[$object['uuid']][$type];
$objects[$chunk][$k][$type] = !empty($objects[$chunk][$k][$type]) ? $objects[$chunk][$k][$type] : [];
$objects[$chunk][$k][$type] = array_merge($objects[$chunk][$k][$type], $temp[$object['uuid']][$type]);
}
}
}