Bug 1960 - Datenverlust beim CSV-Warenimport bei Preisen
[kivitendo-erp.git] / SL / Form.pm
index 8d28f84..8491673 100644 (file)
@@ -1117,7 +1117,7 @@ sub parse_template {
     'kivitendo-printXXXXXX',
     SUFFIX => '.' . ($suffix || 'tex'),
     DIR    => $userspath,
-    UNLINK => 1,
+    UNLINK => ($::lx_office_conf{debug} && $::lx_office_conf{debug}->{keep_temp_files})? 0 : 1,
   );
   close $temp_fh;