From 9c981a55bd776286151af4fc772117d051f8a731 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 1 Feb 2013 12:12:16 +0100 Subject: [PATCH] Refactoring: Parameterredesign SL::Controller::Base::render und SL::Presenter::render --- SL/Controller/FinancialControllingReport.pm | 4 ++-- SL/Controller/ProjectType.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Controller/FinancialControllingReport.pm b/SL/Controller/FinancialControllingReport.pm index 5b99ed262..84be61bdb 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -114,8 +114,8 @@ sub prepare_report { controller_class => 'FinancialControllingReport', output_format => 'HTML', top_info_text => $::locale->text('Financial controlling report for open sales orders'), - raw_top_info_text => $self->render('financial_controlling_report/report_top', { no_output => 1, partial => 1 }), - raw_bottom_info_text => $self->render('financial_controlling_report/report_bottom', { no_output => 1, partial => 1 }), + raw_top_info_text => $self->render('financial_controlling_report/report_top', { output => 0 }), + raw_bottom_info_text => $self->render('financial_controlling_report/report_bottom', { output => 0 }), title => $::locale->text('Financial Controlling Report'), allow_pdf_export => 1, allow_csv_export => 1, diff --git a/SL/Controller/ProjectType.pm b/SL/Controller/ProjectType.pm index 89d8c902b..e986924e2 100644 --- a/SL/Controller/ProjectType.pm +++ b/SL/Controller/ProjectType.pm @@ -68,7 +68,7 @@ sub action_reorder { SL::DB::ProjectType->reorder_list(@{ $::form->{project_type_id} || [] }); - $self->render('1;', { type => 'js', inline => 1 }); + $self->render(\'', { type => 'json' }); } # -- 2.20.1