Skip to content

Commit

Permalink
Merge pull request #1181 from rmehta/list-title-fix
Browse files Browse the repository at this point in the history
[fix] show currect label for title in list views frappe/erpnext#3482
  • Loading branch information
rmehta committed Jul 6, 2015
2 parents 06fc344 + b12aab1 commit 60806e9
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 60806e9

Please sign in to comment.