Filter Text Editor columns from list view

- frappe/erpnext#8445
This commit is contained in:
Faris Ansari 2017-04-14 16:20:37 +05:30 committed by Nabin Hait
parent 409f3c0af8
commit 0157ee6f22

View file

@ -225,6 +225,9 @@ frappe.views.ListRenderer = Class.extend({
// Remove duplicates
this.columns = this.columns.uniqBy(col => col.title);
// Remove TextEditor field columns
this.columns = this.columns.filter(col => col.fieldtype !== 'Text Editor')
// Limit number of columns to 4
this.columns = this.columns.slice(0, 4);
},