Skip to content

Commit

Permalink
[fix] show currect label for title in list views frappe/erpnext#3482
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta committed Jul 3, 2015
1 parent 7d5648e commit b12aab1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frappe/public/js/frappe/list/listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@ frappe.views.ListView = Class.extend({
set_columns: function() {
var me = this;
this.columns = [];
this.columns.push({
var name_column = {
colspan: this.settings.colwidths && this.settings.colwidths.subject || 6,
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;

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

0 comments on commit b12aab1

Please sign in to comment.