fix: [thumbnail] Thumbnail visualisation broken on proposals, fixes #3793

pull/3816/head
iglocska 2018-10-27 23:08:31 +02:00
parent 168fd9f3b0
commit e22ed38d5b
1 changed files with 5 additions and 1 deletions

View File

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