projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0aab26
)
Briefdruck. Bildschirmauswahl überlagert Drucker
author
Jan Büren
<jan@kivitendo-premium.de>
Mon, 20 Apr 2015 15:54:45 +0000
(17:54 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Mon, 20 Apr 2015 15:54:45 +0000
(17:54 +0200)
Wie in den anderen Druckvorlagen auch. Falls media eq screen, immer
am Bildschrim (Browser) ausdrucken.
bin/mozilla/letter.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/letter.pl
b/bin/mozilla/letter.pl
index
710cf8a
..
172ea1b
100755
(executable)
--- a/
bin/mozilla/letter.pl
+++ b/
bin/mozilla/letter.pl
@@
-398,7
+398,8
@@
sub print_letter {
return $err?0:1;
}
- if (!$::form->{printer_id}) {
+ if (!$::form->{printer_id} || $::form->{media} eq 'screen') {
+
my $file = IO::File->new($pdf_file_name, 'r') || croak("Cannot open file '$pdf_file_name'");
my $size = -s $pdf_file_name;
my $content_type = 'application/pdf';