Skip to content

Commit

Permalink
Merge pull request #13 from mar-kolya/master
Browse files Browse the repository at this point in the history
Fixed an empty image issue and an image list issue
  • Loading branch information
dchester committed Mar 12, 2014
2 parents 4c8b620 + ba4aa51 commit 0d51ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/image/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
return callback([]);
}

if (!parsed_data) return callback(null);
var file_id = parsed_data.file_id;

models.files.find({ where: { id: file_id } })
Expand Down
2 changes: 1 addition & 1 deletion plugins/image_list/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(function() {

try {
var files = {{ item[field.name]|json_encode|raw }};
var files = {{ item.data[field.name]|json_encode|raw }};
} catch(e) {
return;
}
Expand Down

0 comments on commit 0d51ea7

Please sign in to comment.