From: Bernd Bleßmann Date: Fri, 1 Mar 2013 14:44:02 +0000 (+0100) Subject: Beim CSV-Import im Report alle Zeilen anzeigen. X-Git-Tag: release-3.1.0beta1~576 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7b38e23d6509d1e4520caf77c9698bdb077c215f;p=kivitendo-erp.git Beim CSV-Import im Report alle Zeilen anzeigen. Fixt #2175. --- 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 = (