mirror of https://github.com/MISP/MISP
fix: [thumbnail] Thumbnail visualisation broken on proposals, fixes #3793
parent
168fd9f3b0
commit
e22ed38d5b
|
@ -4385,7 +4385,11 @@ class Event extends AppModel
|
|||
if (!empty($object['data'])) {
|
||||
$object['image'] = $object['data'];
|
||||
} else {
|
||||
$object['image'] = $this->Attribute->base64EncodeAttachment($object);
|
||||
if ($object['objectType'] === 'proposal') {
|
||||
$object['image'] = $this->ShadowAttribute->base64EncodeAttachment($object);
|
||||
} else {
|
||||
$object['image'] = $this->Attribute->base64EncodeAttachment($object);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($object['distribution']) && $object['distribution'] != 4) {
|
||||
|
|
Loading…
Reference in New Issue