Revision 663a3643
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
1232 | 1232 |
$form->error($::locale->text('No print templates have been created for this client yet. Please do so in the client configuration.')) if !$defaults->templates; |
1233 | 1233 |
$form->{templates} = $defaults->templates; |
1234 | 1234 |
|
1235 |
my ($old_form) = @_; |
|
1235 |
my ($old_form, %params) = @_;
|
|
1236 | 1236 |
|
1237 | 1237 |
my $inv = "inv"; |
1238 | 1238 |
my $due = "due"; |
... | ... | |
1662 | 1662 |
($form->{media} eq 'printer') |
1663 | 1663 |
? $locale->text('sent to printer') |
1664 | 1664 |
: $locale->text('emailed to') . " $form->{email}"; |
1665 |
$form->redirect(qq|$form->{label} $form->{"${inv}number"} $msg|); |
|
1665 |
|
|
1666 |
if (!$params{no_redirect}) { |
|
1667 |
$form->redirect(qq|$form->{label} $form->{"${inv}number"} $msg|); |
|
1668 |
} |
|
1666 | 1669 |
} |
1667 | 1670 |
if ($form->{printing}) { |
1668 | 1671 |
call_sub($display_form); |
Auch abrufbar als: Unified diff
print_form optional ohne redirect