mirror of https://github.com/MISP/MISP
fix: [analyst-data:UI] Added missing entries for view elements
parent
87c71ecfc9
commit
94dd4fa093
|
@ -91,13 +91,14 @@
|
|||
$notes = !empty($object['Note']) ? $object['Note'] : [];
|
||||
$opinions = !empty($object['Opinion']) ? $object['Opinion'] : [];
|
||||
$relationships = !empty($object['Relationship']) ? $object['Relationship'] : [];
|
||||
$relationshipsInbound = !empty($object['RelationshipInbound']) ? $object['RelationshipInbound'] : [];
|
||||
echo $this->element('genericElements/shortUuidWithNotes', [
|
||||
'uuid' => $object['uuid'],
|
||||
'object_type' => 'Attribute',
|
||||
'notes' => $notes,
|
||||
'opinions' => $opinions,
|
||||
'relationships_outbound' => $relationships,
|
||||
'relationships_inbound' => $relationshipsInbound,
|
||||
'relationships' => $relationships,
|
||||
'relationshipsInbound' => $relationshipsInbound,
|
||||
]);
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -58,8 +58,8 @@ $objectId = intval($object['id']);
|
|||
'object_type' => 'Attribute',
|
||||
'notes' => $notes,
|
||||
'opinions' => $opinions,
|
||||
'relationships_outbound' => $relationships,
|
||||
'relationships_inbound' => $relationshipsInbound,
|
||||
'relationships' => $relationships,
|
||||
'relationshipsInbound' => $relationshipsInbound,
|
||||
]);
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -73,13 +73,14 @@
|
|||
$notes = !empty($object['Note']) ? $object['Note'] : [];
|
||||
$opinions = !empty($object['Opinion']) ? $object['Opinion'] : [];
|
||||
$relationships = !empty($object['Relationship']) ? $object['Relationship'] : [];
|
||||
$relationshipsInbound = !empty($object['RelationshipInbound']) ? $object['RelationshipInbound'] : [];
|
||||
echo $this->element('genericElements/shortUuidWithNotes', [
|
||||
'uuid' => $object['uuid'],
|
||||
'object_type' => 'Attribute',
|
||||
'notes' => $notes,
|
||||
'opinions' => $opinions,
|
||||
'relationships_outbound' => $relationships,
|
||||
'relationships_inbound' => $relationshipsInbound,
|
||||
'relationships' => $relationships,
|
||||
'relationshipsInbound' => $relationshipsInbound,
|
||||
]);
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -7,10 +7,12 @@
|
|||
$notes = Hash::extract($row, $field['notes_data_path'] ?? 'Note');
|
||||
$opinions = Hash::extract($row, $field['opinions_data_path'] ?? 'Opnion');
|
||||
$relationships = Hash::extract($row, $field['relationships_data_path'] ?? 'Relationship');
|
||||
$relationshipsInbound = Hash::extract($row, $field['relationships_inbound_data_path'] ?? 'RelationshipInbound');
|
||||
echo $this->element('genericElements/shortUuidWithNotes', [
|
||||
'uuid' => $uuid,
|
||||
'object_type' => $field['object_type'],
|
||||
'notes' => $notes,
|
||||
'opinions' => $opinions,
|
||||
'relationships' => $relationships,
|
||||
'relationshipsInbound' => $relationshipsInbound,
|
||||
]);
|
|
@ -81,6 +81,7 @@
|
|||
'notes_data_path' => 'Note',
|
||||
'opinions_data_path' => 'Opinion',
|
||||
'relationships_data_path' => 'Relationship',
|
||||
'relationships_inbound_data_path' => 'RelationshipInbound',
|
||||
'element' => 'shortUUIDWithNotes',
|
||||
'object_type' => 'EventReport',
|
||||
),
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
'notes_data_path' => 'Note',
|
||||
'opinions_data_path' => 'Opinion',
|
||||
'relationships_data_path' => 'Relationship',
|
||||
'relationships_inbound_data_path' => 'RelationshipInbound',
|
||||
'element' => 'shortUUIDWithNotes',
|
||||
'object_type' => 'EventReport',
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue