From 3466a993acbb21a4c12c3022a0c678057ab7718f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Dost=C3=A1l?= Date: Sat, 11 Mar 2017 16:21:38 +0100 Subject: [PATCH] Changed number of first record from 0 to 1. (#493) --- src/templates/datagrid.latte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/datagrid.latte b/src/templates/datagrid.latte index d9070b85..b543d665 100644 --- a/src/templates/datagrid.latte +++ b/src/templates/datagrid.latte @@ -377,7 +377,7 @@ {if $control->getPerPage() === 'all'} {='ublaboo_datagrid.items'|translate}: {='ublaboo_datagrid.all'|translate} {else} - {='ublaboo_datagrid.items'|translate}: {$paginator->getOffset() > 0 ? $paginator->getOffset() + 1 : 0} - {sizeof($rows) + $paginator->getOffset()} + {='ublaboo_datagrid.items'|translate}: {$paginator->getOffset() > 0 ? $paginator->getOffset() + 1 : 1} - {sizeof($rows) + $paginator->getOffset()} {='ublaboo_datagrid.from'|translate} {$paginator->getItemCount()} {/if})