in hide empty columns, also hide columns with 0 as value

This commit is contained in:
Anand Doshi 2012-12-19 12:02:18 +05:30
parent d3410a25b9
commit 70efda878f

View file

@ -64,7 +64,7 @@ wn.print.Table = Class.extend({
$.each(this.data, function(i, row) {
$.each(me.columns, function(ci, fieldname) {
var value = row[fieldname];
if((value!==null && value!=="") || ci==0) {
if(value || ci==0) {
if(!in_list(cols_with_value, fieldname)) {
cols_with_value.push(fieldname);