Minor fix in query report

This commit is contained in:
Anand Doshi 2014-07-18 18:57:04 +05:30
parent 6ae8e26c5a
commit 7d9bd54915

View file

@ -327,7 +327,7 @@ frappe.views.QueryReport = Class.extend({
if (!cint(df.width)) df.width = 80;
var col = $.extend({}, df, {
label: df.label || __(toTitle(df.fieldname.replace(/_/g, " "))),
label: df.label || (df.fieldname && __(toTitle(df.fieldname.replace(/_/g, " ")))) || "",
sortable: true,
df: df,
formatter: formatter