From 663a36435a60b53b894ab688f99c54d587d71795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 7 May 2012 18:42:16 +0200 Subject: [PATCH] print_form optional ohne redirect --- bin/mozilla/io.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 1cfc0ca57..7fc1ef1b8 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1232,7 +1232,7 @@ sub print_form { $form->error($::locale->text('No print templates have been created for this client yet. Please do so in the client configuration.')) if !$defaults->templates; $form->{templates} = $defaults->templates; - my ($old_form) = @_; + my ($old_form, %params) = @_; my $inv = "inv"; my $due = "due"; @@ -1662,7 +1662,10 @@ sub print_form { ($form->{media} eq 'printer') ? $locale->text('sent to printer') : $locale->text('emailed to') . " $form->{email}"; - $form->redirect(qq|$form->{label} $form->{"${inv}number"} $msg|); + + if (!$params{no_redirect}) { + $form->redirect(qq|$form->{label} $form->{"${inv}number"} $msg|); + } } if ($form->{printing}) { call_sub($display_form); -- 2.20.1