in hide empty columns, also hide columns with 0 as value
This commit is contained in:
parent
d3410a25b9
commit
70efda878f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue