Sfoglia il codice sorgente

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

version-14
Rushabh Mehta 8 anni fa
parent
commit
b9fd3ea5aa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/public/js/frappe/list/listview.js

+ 1
- 1
frappe/public/js/frappe/list/listview.js Vedi File

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


Caricamento…
Annulla
Salva