Using the count aggregation function on a column where the result is 0 returns blank value. The problem appears to be in the views_aggregator_plugin_style_table.inc file in the format_numeric function. After checking the hiding and plural options, the code specifically blanks the empty value at lines 734-736. I believe this check should be removed.

if (empty($value)) {
  return ''
}
CommentFileSizeAuthor
#1 New VAP option.png228.03 KBrdeboer

Comments

rdeboer’s picture

StatusFileSize
new228.03 KB

Hi refman1073,

Thanks for your report...
You could be right. Still mulling over it...

In the meantime, this new option may or may not help too... Sorry don't have time to check now:

Rik

  • RdeBoer committed 6b23f05 on 7.x-1.x
    Issue #2459411 by refman1073: Count column aggregation ignores empty...
rdeboer’s picture

@refman1073: Put your fix in. Thanks. Something went wrong with the Git attribution. Sorry.