Browse Source

[fix] show currect label for title in list views frappe/erpnext#3482

version-14
Rushabh Mehta 10 years ago
parent
commit
b12aab1fe6
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      frappe/public/js/frappe/list/listview.js

+ 7
- 3
frappe/public/js/frappe/list/listview.js View File

@@ -102,11 +102,15 @@ frappe.views.ListView = Class.extend({
set_columns: function() { set_columns: function() {
var me = this; var me = this;
this.columns = []; this.columns = [];
this.columns.push({
var name_column = {
colspan: this.settings.colwidths && this.settings.colwidths.subject || 6, colspan: this.settings.colwidths && this.settings.colwidths.subject || 6,
type: "Subject", type: "Subject",
title: "Title"
});
title: "Name"
};
if (this.meta.title_field) {
name_column.title = frappe.meta.get_docfield(this.doctype, this.meta.title_field).label;
}
this.columns.push(name_column);
this.total_colspans = this.columns[0].colspan; this.total_colspans = this.columns[0].colspan;


if(frappe.model.is_submittable(this.doctype) if(frappe.model.is_submittable(this.doctype)


Loading…
Cancel
Save