diff options
author | sgiehl <stefan@piwik.org> | 2016-04-03 23:50:30 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2016-04-04 23:58:18 +0300 |
commit | bae8993483a080f0033bce20cdf6532631c1521a (patch) | |
tree | 9c6839166667007e1edecc9581c4fc50bd533b29 /plugins | |
parent | d9031717cb25d9ae943cbe6e7c64215a8851189d (diff) |
fixes #9628 - do not handle '0' as empty value in label columns in datatables
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/templates/_dataTableCell.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/_dataTableCell.twig b/plugins/CoreHome/templates/_dataTableCell.twig index ac6b935d7c..3a54c3fac0 100644 --- a/plugins/CoreHome/templates/_dataTableCell.twig +++ b/plugins/CoreHome/templates/_dataTableCell.twig @@ -47,7 +47,7 @@ {% if row.getMetadata('html_label_prefix') %}<span class='label-prefix'>{{ row.getMetadata('html_label_prefix') | raw }} </span>{% endif -%} {%- if row.getMetadata('html_label_suffix') %}<span class='label-suffix'>{{ row.getMetadata('html_label_suffix') | raw }}</span>{% endif -%} {% endif %}<span class="value"> - {%- if row.getColumn(column) %}{% if column=='label' %}{{- row.getColumn(column)|rawSafeDecoded -}}{% else %}{{- row.getColumn(column)|number(2,0)|raw -}}{% endif %} + {%- if row.getColumn(column) or (column=='label' and row.getColumn(column) is same as("0")) %}{% if column=='label' %}{{- row.getColumn(column)|rawSafeDecoded -}}{% else %}{{- row.getColumn(column)|number(2,0)|raw -}}{% endif %} {%- else -%}- {%- endif -%}</span> {% if column=='label' %}</span>{% endif %} |