Commit a417592f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix description when inserting attached image into a blogpost (bug #652784)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 47d6a685
......@@ -196,7 +196,11 @@ function attachedImageList() {
var attachments = editpost_filebrowser.selecteddata;
for (var a in attachments) {
if (attachments[a].artefacttype == 'image') {
images.push({'id': attachments[a].id, 'name': attachments[a].title, 'description': attachments[a].description});
images.push({
'id': attachments[a].id,
'name': attachments[a].title,
'description': attachments[a].description ? attachments[a].description : ''
});
}
}
return images;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment