Refactoring: Parameterredesign SL::Controller::Base::render und SL::Presenter::render
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 1 Feb 2013 11:12:16 +0000 (12:12 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 17 Dec 2013 13:37:03 +0000 (14:37 +0100)
SL/Controller/FinancialControllingReport.pm
SL/Controller/ProjectType.pm

index 5b99ed2..84be61b 100644 (file)
@@ -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,
index 89d8c90..e986924 100644 (file)
@@ -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' });
 }
 
 #