fix: [analyst-data:UI] Added missing entries for view elements

pull/7199/merge
Sami Mokaddem 2024-04-03 15:39:20 +02:00
parent 87c71ecfc9
commit 94dd4fa093
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
6 changed files with 12 additions and 6 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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,
]);

View File

@ -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',
),

View File

@ -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',
),