projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Dirty hack: Konvertierung ODT -> PDF als "OK" ansehen, wenn PDF existiert
[kivitendo-erp.git]
/
SL
/
Template.pm
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
f767967
..
24285bf
100644
(file)
--- a/
SL/Template.pm
+++ b/
SL/Template.pm
@@
-1360,7
+1360,7
@@
sub convert_to_pdf {
system(@cmdline);
my $res = $?;
- if (
0 == $?
) {
+ if (
(0 == $?) || (-f "${filename}.pdf" && -s "${filename}.pdf")
) {
$form->{"tmpfile"} =~ s/odt$/pdf/;
unlink($filename . ".odt");