mirror of https://github.com/MISP/MISP
chg: [analyst-notes:ui] Add fallback for passing data
- To be removed later onfeature/analyst-notes
parent
3cf306bee5
commit
baf6ca3cab
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue