From: Thomas Heck Date: Thu, 6 Mar 2014 13:08:00 +0000 (+0100) Subject: Projekte-PDF|CSV-Export aufs neue GetModels umgestellt X-Git-Tag: release-3.2.0beta~484 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=84ec69e6f492506d1d131086a7068140b9f82f13;p=kivitendo-erp.git Projekte-PDF|CSV-Export aufs neue GetModels umgestellt --- diff --git a/SL/Controller/Project.pm b/SL/Controller/Project.pm index e47b06e87..d6a63759d 100644 --- a/SL/Controller/Project.pm +++ b/SL/Controller/Project.pm @@ -213,6 +213,9 @@ sub prepare_report { map { $column_defs{$_}->{text} ||= $::locale->text( $self->models->get_sort_spec->{$_}->{title} ) } keys %column_defs; + if ( $report->{options}{output_format} =~ /^(pdf|csv)$/i ) { + $self->models->disable_plugin('paginated'); + } $report->set_options( std_column_visibility => 1, controller_class => 'Project', @@ -226,7 +229,6 @@ sub prepare_report { $report->set_column_order(@columns); $report->set_export_options(qw(list filter)); $report->set_options_from_form; - $self->models->disable_pagination if $report->{options}{output_format} =~ /^(pdf|csv)$/i; $self->models->set_report_generator_sort_options(report => $report, sortable_columns => \@sortable); $report->set_options( raw_bottom_info_text => $self->render('project/report_bottom', { output => 0 }),