From 84ec69e6f492506d1d131086a7068140b9f82f13 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Thu, 6 Mar 2014 14:08:00 +0100 Subject: [PATCH] Projekte-PDF|CSV-Export aufs neue GetModels umgestellt --- SL/Controller/Project.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }), -- 2.20.1