From 3e15b5043dedb0b88e5efa36cc98aab4649bbcfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 25 Jan 2016 11:54:48 +0100 Subject: [PATCH] Letter: PrintOptions-Helper verwenden. --- SL/Controller/Letter.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 994b3c001..c8a8ff60e 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -11,6 +11,7 @@ use SL::DB::LetterDraft; use SL::DB::Employee; use SL::Helper::Flash qw(flash); use SL::Helper::CreatePDF; +use SL::Helper::PrintOptions; use SL::Locale::String qw(t8); use SL::IS; use SL::ReportGenerator; @@ -302,8 +303,6 @@ sub _display { my $letter = $self->letter; - require 'bin/mozilla/io.pl'; - $params{title} ||= t8('Edit Letter'); $::form->{type} = 'letter'; # needed for print_options @@ -320,7 +319,7 @@ sub _display { PCF => [ map { key => $_, value => t8(ucfirst $_) }, PAGE_CREATED_FOR_VALUES() ], letter => $letter, employees => $self->all_employees, - print_options => print_options(inline => 1), + print_options => SL::Helper::PrintOptions->get_print_options, ); } -- 2.20.1