{% set min = (entities.paginationData.current - 1) * entities.paginationData.numItemsPerPage + 1 %}
{% set max = entities.paginationData.current * entities.paginationData.numItemsPerPage %}
{% set total = entities.paginationData.totalCount %}

 {% trans %}obcms.pagination.count_prefix{% endtrans %}
 {{ min }}
 {% trans %}obcms.pagination.count_to{% endtrans %}
 {{ total > max ? max : total }}
 {% trans %}obcms.pagination.count_of{% endtrans %}
 {{ total }}
 {% trans %}obcms.pagination.count_suffix{% endtrans %}
{% set min = (entities.paginationData.current - 1) * entities.paginationData.numItemsPerPage + 1 %}
{% set max = entities.paginationData.current * entities.paginationData.numItemsPerPage %}
{% set total = entities.paginationData.totalCount %}

{% if total > 0 %}
 {% trans %}obcms.pagination.count_prefix{% endtrans %}
 {{ min }}
 {% trans %}obcms.pagination.count_to{% endtrans %}
 {{ total > max ? max : total }}
 {% trans %}obcms.pagination.count_of{% endtrans %}
{% endif %}
 {{ total }}
 {% trans %}obcms.pagination.count_suffix{% endtrans %}
Fix a row count bug when list is empty
Fix a row count bug when list is empty
