[minor] fix image view, frappe/erpnext#7062

This commit is contained in:
Rushabh Mehta 2016-12-12 16:31:39 +05:30
parent 7128289ad6
commit b9fd3ea5aa

View file

@ -18,7 +18,7 @@ frappe.views.ListView = Class.extend({
this.doclistview = doclistview;
this.doctype = doctype;
this.meta = frappe.get_doc("DocType", this.doctype);
this.image_field = this.meta.image_field || image;
this.image_field = this.meta.image_field || 'image';
this.settings = frappe.listview_settings[this.doctype] || {};
if(this.meta.__listview_template) {
this.template_name = doctype + "_listview";