From 7b38e23d6509d1e4520caf77c9698bdb077c215f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 1 Mar 2013 15:44:02 +0100 Subject: [PATCH] Beim CSV-Import im Report alle Zeilen anzeigen. Fixt #2175. --- SL/Controller/CsvImport.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index dda08821f..47dd76563 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -152,7 +152,7 @@ sub action_report { my $page = $::form->{page} || 1; my $pages = {}; $pages->{per_page} = $::form->{per_page} || 20; - $pages->{max} = SL::DB::Helper::Paginated::ceil($num_rows / ($num_cols || 1), $pages->{per_page}) || 1; + $pages->{max} = SL::DB::Helper::Paginated::ceil($num_rows, $pages->{per_page}) || 1; $pages->{cur} = $page < 1 ? 1 : $page > $pages->{max} ? $pages->{max} : $page; @@ -162,7 +162,7 @@ sub action_report { 0, $pages->{per_page} * ($pages->{cur}-1) + 1 .. - min($pages->{per_page} * $pages->{cur}, $num_rows / ($num_cols || 1) - 1) + min($pages->{per_page} * $pages->{cur}, $num_rows) ]; my @query = ( -- 2.20.1