chg: [analyst-notes:ui] Add fallback for passing data

- To be removed later on
feature/analyst-notes
Sami Mokaddem 2024-01-04 09:54:12 +01:00
parent 3cf306bee5
commit baf6ca3cab
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
h($uuid)
);
echo $this->element('genericElements/Analyst_notes/notes');
if (!empty($notes)) {
echo $this->element('genericElements/Analyst_notes/notes', ['notes' => $notes, 'object_uuid' => $object_uuid, 'object_type' => $object_type]);
}
$notes = !empty($notes) ? $notes : [];
$object_uuid = !empty($object_uuid) ? $object_uuid : null;
$object_type = !empty($object_type) ? $object_type : null;
echo $this->element('genericElements/Analyst_notes/notes', ['notes' => $notes, 'object_uuid' => $object_uuid, 'object_type' => $object_type]);